diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-10-02 13:26:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-10-02 13:26:25 +0200 |
commit | 95bafa296ae97bf420d5c74dd6db517b404c5df7 (patch) | |
tree | 1b435e15fef792025110a5da338a5664c50e0753 /runtime/doc/if_pyth.txt | |
parent | 6dff58f15cede9139b2fcfc64c9064326ea3d3b0 (diff) | |
download | vim-git-95bafa296ae97bf420d5c74dd6db517b404c5df7.tar.gz |
Update runtime files.
Diffstat (limited to 'runtime/doc/if_pyth.txt')
-rw-r--r-- | runtime/doc/if_pyth.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/if_pyth.txt b/runtime/doc/if_pyth.txt index a93f3cbb4..86d9ac261 100644 --- a/runtime/doc/if_pyth.txt +++ b/runtime/doc/if_pyth.txt @@ -60,9 +60,10 @@ Example: > endfunction To see what version of Python you have: > - :python import sys :python print(sys.version) +There is no need to import sys, it's done by default. + Note: Python is very sensitive to the indenting. Make sure the "class" line and "EOF" do not have any indent. @@ -110,7 +111,6 @@ Python commands cannot be used in the |sandbox|. To pass arguments you need to set sys.argv[] explicitly. Example: > - :python import sys :python sys.argv = ["foo", "bar"] :pyfile myscript.py |