Mercurial > vim
comparison runtime/doc/if_pyth.txt @ 32004:a9b5ffbc0428
Update runtime files.
Commit: https://github.com/vim/vim/commit/938ae280c79b8cdb0fca60336ec4c090ecd8bb5a
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Feb 20 20:44:55 2023 +0000
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 20 Feb 2023 22:00:05 +0100 |
parents | f8116058ca76 |
children | c517845bd10e |
comparison
equal
deleted
inserted
replaced
32003:aa9c0f0ebfd0 | 32004:a9b5ffbc0428 |
---|---|
855 *has-python* | 855 *has-python* |
856 You can test what Python version is available with: > | 856 You can test what Python version is available with: > |
857 if has('python') | 857 if has('python') |
858 echo 'there is Python 2.x' | 858 echo 'there is Python 2.x' |
859 endif | 859 endif |
860 if has('python3') | 860 if has('python3') |
861 echo 'there is Python 3.x' | 861 echo 'there is Python 3.x' |
862 endif | 862 endif |
863 | 863 |
864 Note however, that when Python 2 and 3 are both available and loaded | 864 Note however, that when Python 2 and 3 are both available and loaded |
865 dynamically, these has() calls will try to load them. If only one can be | 865 dynamically, these has() calls will try to load them. If only one can be |
872 echo 'compiled with Python 2.x support' | 872 echo 'compiled with Python 2.x support' |
873 if has('python_dynamic') | 873 if has('python_dynamic') |
874 echo 'Python 2.x dynamically loaded' | 874 echo 'Python 2.x dynamically loaded' |
875 endif | 875 endif |
876 endif | 876 endif |
877 if has('python3_compiled') | 877 if has('python3_compiled') |
878 echo 'compiled with Python 3.x support' | 878 echo 'compiled with Python 3.x support' |
879 if has('python3_dynamic') | 879 if has('python3_dynamic') |
880 echo 'Python 3.x dynamically loaded' | 880 echo 'Python 3.x dynamically loaded' |
881 endif | 881 endif |
882 endif | 882 endif |