summaryrefslogtreecommitdiffstats
path: root/Doc/library/sys.rst
diff options
context:
space:
mode:
authorPetri Lehtinen <petri@digip.org>2012-02-02 19:11:28 (GMT)
committerPetri Lehtinen <petri@digip.org>2012-02-02 19:26:05 (GMT)
commitfe6f9d0edc8dc6dd7e51317c8f9788fdd5eeff50 (patch)
treeab9ae6a1fce7d295b49b10530ba81cd2494a694c /Doc/library/sys.rst
parentda6db4f8b0fd3de3a5adc6b8f856e80bfda0d40a (diff)
downloadcpython-fe6f9d0edc8dc6dd7e51317c8f9788fdd5eeff50.zip
cpython-fe6f9d0edc8dc6dd7e51317c8f9788fdd5eeff50.tar.gz
cpython-fe6f9d0edc8dc6dd7e51317c8f9788fdd5eeff50.tar.bz2
Document absoluteness of sys.executable
Closes #13402.
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r--Doc/library/sys.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 94947b2..a52b0d6 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -215,8 +215,10 @@ always available.
.. data:: executable
- A string giving the name of the executable binary for the Python interpreter, on
- systems where this makes sense.
+ A string giving the absolute path of the executable binary for the Python
+ interpreter, on systems where this makes sense. If Python is unable to retrieve
+ the real path to its executable, :data:`sys.executable` will be an empty string
+ or ``None``.
.. function:: exit([arg])