summaryrefslogtreecommitdiffstats
path: root/Doc/library/sys.rst
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2012-11-20 20:35:27 (GMT)
committerBarry Warsaw <barry@python.org>2012-11-20 20:35:27 (GMT)
commitb72c10996e804413ebf0cb04ffc6e10f128b90c2 (patch)
treef81b41542a8c1c891d8973d0e65980f8afec5afb /Doc/library/sys.rst
parent47037d7e4e1f0f71a7640f1e71f8d558c3ac6668 (diff)
parent82c1c781c7ee6496bd4c404b7ba972eed5dbcb12 (diff)
downloadcpython-b72c10996e804413ebf0cb04ffc6e10f128b90c2.zip
cpython-b72c10996e804413ebf0cb04ffc6e10f128b90c2.tar.gz
cpython-b72c10996e804413ebf0cb04ffc6e10f128b90c2.tar.bz2
- Issue #16514: Fix regression causing a traceback when sys.path[0] is None
(actually, any non-string or non-bytes type).
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r--Doc/library/sys.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 0da2be8..5e2b371 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -783,7 +783,9 @@ always available.
current directory first. Notice that the script directory is inserted *before*
the entries inserted as a result of :envvar:`PYTHONPATH`.
- A program is free to modify this list for its own purposes.
+ A program is free to modify this list for its own purposes. Only strings
+ and bytes should be added to :data:`sys.path`; all other data types are
+ ignored during import.
.. seealso::