]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 8.0.0251: not easy to select Python 2 or 3 v8.0.0251
authorBram Moolenaar <Bram@vim.org>
Sat, 28 Jan 2017 15:06:38 +0000 (16:06 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 28 Jan 2017 15:06:38 +0000 (16:06 +0100)
commitf42dd3c3901ea0ba38e67a616aea9953cae81b8d
tree3626ca40161dbfaa5e72a4dbeaa46b24480ddc8c
parent0c0590d9827cb07a33c1552cb3558b94bddcb4dc
patch 8.0.0251: not easy to select Python 2 or 3

Problem:    It is not so easy to write a script that works with both Python 2
            and Python 3, even when the Python code works with both.
Solution:   Add 'pyxversion', :pyx, etc. (Marc Weber, Ken Takata)
27 files changed:
Filelist
runtime/doc/eval.txt
runtime/doc/if_pyth.txt
runtime/doc/index.txt
runtime/doc/options.txt
runtime/doc/quickref.txt
runtime/optwin.vim
src/Makefile
src/evalfunc.c
src/ex_cmds.h
src/ex_cmds2.c
src/ex_docmd.c
src/if_python.c
src/if_python3.c
src/option.c
src/option.h
src/proto/ex_cmds2.pro
src/testdir/Make_all.mak
src/testdir/pyxfile/py2_magic.py [new file with mode: 0644]
src/testdir/pyxfile/py2_shebang.py [new file with mode: 0644]
src/testdir/pyxfile/py3_magic.py [new file with mode: 0644]
src/testdir/pyxfile/py3_shebang.py [new file with mode: 0644]
src/testdir/pyxfile/pyx.py [new file with mode: 0644]
src/testdir/test_pyx2.vim [new file with mode: 0644]
src/testdir/test_pyx3.vim [new file with mode: 0644]
src/userfunc.c
src/version.c