comparison runtime/doc/if_pyth.txt @ 13231:167a030448fa

Update runtime files. commit https://github.com/vim/vim/commit/7254067ee970686cc3ff4a1effc3e49e9192a5c1 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 9 22:00:53 2018 +0100 Update runtime files.
author Christian Brabandt <cb@256bit.org>
date Fri, 09 Feb 2018 22:15:07 +0100
parents 371ceeebbdaa
children 1174611ad715
comparison
equal deleted inserted replaced
13230:0b201ae05cd3 13231:167a030448fa
1 *if_pyth.txt* For Vim version 8.0. Last change: 2018 Jan 28 1 *if_pyth.txt* For Vim version 8.0. Last change: 2018 Jan 30
2 2
3 3
4 VIM REFERENCE MANUAL by Paul Moore 4 VIM REFERENCE MANUAL by Paul Moore
5 5
6 6
821 821
822 To avoid loading the dynamic library, only check if Vim was compiled with 822 To avoid loading the dynamic library, only check if Vim was compiled with
823 python support: > 823 python support: >
824 if has('python_compiled') 824 if has('python_compiled')
825 echo 'compiled with Python 2.x support' 825 echo 'compiled with Python 2.x support'
826 if has('python_dynamic 826 if has('python_dynamic')
827 echo 'Python 2.x dynamically loaded 827 echo 'Python 2.x dynamically loaded'
828 endif 828 endif
829 endif 829 endif
830 if has('python3_compiled') 830 if has('python3_compiled')
831 echo 'compiled with Python 3.x support' 831 echo 'compiled with Python 3.x support'
832 if has('python3_dynamic 832 if has('python3_dynamic')
833 echo 'Python 3.x dynamically loaded 833 echo 'Python 3.x dynamically loaded'
834 endif 834 endif
835 endif 835 endif
836 836
837 This also tells you whether Python is dynamically loaded, which will fail if 837 This also tells you whether Python is dynamically loaded, which will fail if
838 the runtime library cannot be found. 838 the runtime library cannot be found.