comparison runtime/doc/if_pyth.txt @ 27903:d19b7aee1925

Update runtime files. Commit: https://github.com/vim/vim/commit/c51cf0329809c7ae946c59d6f56699227efc9d1b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 26 12:25:45 2022 +0000 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Feb 2022 13:30:04 +0100
parents 179c118424a6
children dc4de65a7fb7
comparison
equal deleted inserted replaced
27902:8481c8908b5e 27903:d19b7aee1925
1 *if_pyth.txt* For Vim version 8.2. Last change: 2022 Feb 07 1 *if_pyth.txt* For Vim version 8.2. Last change: 2022 Feb 22
2 2
3 3
4 VIM REFERENCE MANUAL by Paul Moore 4 VIM REFERENCE MANUAL by Paul Moore
5 5
6 6
22 The Python 2.x interface is available only when Vim was compiled with the 22 The Python 2.x interface is available only when Vim was compiled with the
23 |+python| feature. 23 |+python| feature.
24 The Python 3 interface is available only when Vim was compiled with the 24 The Python 3 interface is available only when Vim was compiled with the
25 |+python3| feature. 25 |+python3| feature.
26 Both can be available at the same time, but read |python-2-and-3|. 26 Both can be available at the same time, but read |python-2-and-3|.
27
28 NOTE: Python 2 is old and no longer being developed. Using Python 3 is highly
29 recommended. Python 2 support will be dropped when it does not work properly
30 anymore.
27 31
28 ============================================================================== 32 ==============================================================================
29 1. Commands *python-commands* 33 1. Commands *python-commands*
30 34
31 *:python* *:py* *E263* *E264* *E887* 35 *:python* *:py* *E263* *E264* *E887*
921 The `:pyxdo` command works similar to `:pydo`. 925 The `:pyxdo` command works similar to `:pydo`.
922 926
923 *has-pythonx* 927 *has-pythonx*
924 You can test if pyx* commands are available with: > 928 You can test if pyx* commands are available with: >
925 if has('pythonx') 929 if has('pythonx')
926 echo 'pyx* commands are available. (Python ' . &pyx . ')' 930 echo 'pyx* commands are available. (Python ' .. &pyx .. ')'
927 endif 931 endif
928 932
929 When compiled with only one of |+python| or |+python3|, the has() returns 1. 933 When compiled with only one of |+python| or |+python3|, the has() returns 1.
930 When compiled with both |+python| and |+python3|, the test depends on the 934 When compiled with both |+python| and |+python3|, the test depends on the
931 'pyxversion' setting. If 'pyxversion' is 0, it tests Python 3 first, and if 935 'pyxversion' setting. If 'pyxversion' is 0, it tests Python 3 first, and if