diff options
author | Barry Warsaw <barry@python.org> | 2012-11-20 20:22:51 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2012-11-20 20:22:51 (GMT) |
commit | 82c1c781c7ee6496bd4c404b7ba972eed5dbcb12 (patch) | |
tree | e487dc3ab171e765a0a272921fa0db38df43a596 /Doc/library/sys.rst | |
parent | 23089ab1db23333457149b567c125c10445550b6 (diff) | |
download | cpython-82c1c781c7ee6496bd4c404b7ba972eed5dbcb12.zip cpython-82c1c781c7ee6496bd4c404b7ba972eed5dbcb12.tar.gz cpython-82c1c781c7ee6496bd4c404b7ba972eed5dbcb12.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.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index cd6d4bf..73914e3 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:: |