aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc/if_pyth.txt
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-10-29 23:58:13 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-10-30 00:02:22 +0100
commit17c26d0dcfcc189cc020464ace67cc0a6f2475bd (patch)
treebdb6e2b8d0dcd484cfbfc2ae29521ba26fa9852f /runtime/doc/if_pyth.txt
parent7d2fbb9012e983ac013b6352b4cf8ea7a3a2f2b4 (diff)
downloadrneovim-17c26d0dcfcc189cc020464ace67cc0a6f2475bd.tar.gz
rneovim-17c26d0dcfcc189cc020464ace67cc0a6f2475bd.tar.bz2
rneovim-17c26d0dcfcc189cc020464ace67cc0a6f2475bd.zip
vim-patch:95bafa296ae9
Update runtime files. https://github.com/vim/vim/commit/95bafa296ae97bf420d5c74dd6db517b404c5df7
Diffstat (limited to 'runtime/doc/if_pyth.txt')
-rw-r--r--runtime/doc/if_pyth.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/doc/if_pyth.txt b/runtime/doc/if_pyth.txt
index 38a78294b7..81a7816c93 100644
--- a/runtime/doc/if_pyth.txt
+++ b/runtime/doc/if_pyth.txt
@@ -42,9 +42,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.
@@ -91,7 +92,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