New submission from Serhiy Storchaka:
Some OS functions which returns bytes (os.environb, os.getenvb(), os.getcwdb(), os.listdir(), os.readlink(), os.walk(), os.path.abspath(), os.path.expanduser(), os.path.expandvars(), os.path.realpath() and may be other) can return unusable result on Windows (see for example issue13247 and issue16656). The documentation should contains strong warnings about this.
---------- assignee: docs@python components: Documentation, Windows messages: 177613 nosy: docs@python, serhiy.storchaka priority: normal severity: normal stage: needs patch status: open title: Document that bytes OS API can returns unusable results on Windows type: enhancement versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue16700 _______________________________________
Changes by Antoine Pitrou pitrou@free.fr:
---------- nosy: +haypo
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue16700 _______________________________________
STINNER Victor added the comment:
I don't remember il the deprecation of bytes filename is documented.
----------
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue16700 _______________________________________
Changes by Serhiy Storchaka storchaka@gmail.com:
---------- keywords: +easy
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue16700 _______________________________________
Changes by Serhiy Storchaka storchaka@gmail.com:
---------- versions: -Python 3.2
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue16700 _______________________________________
Mark Lawrence added the comment:
As #13247 has been closed "not a bug" and #16656 "won't fix" shouldn't this be done sooner rather than later?
---------- nosy: +BreamoreBoy
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue16700 _______________________________________
Steve Kowalik added the comment:
I've looked at the documentation for both Python 3.5 and 3.6, and I think this is all fine -- things like os.environb and os.getcwdb() are clearly stated as not available on Windows, and the path functions look to work fine in my testing.
---------- nosy: +stevenk
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue16700 _______________________________________
Barry A. Warsaw added the comment:
Thanks Steve! Closing.
---------- nosy: +barry status: open -> closed
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue16700 _______________________________________
Serhiy Storchaka added the comment:
Maybe this issue is outdated in 3.6 (thanks to PEP 529), but this still is a problem under 3.5 and 2.7.
---------- status: closed -> open versions: +Python 3.5 -Python 3.3, Python 3.4
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue16700 _______________________________________
Changes by Mark Lawrence breamoreboy@yahoo.co.uk:
---------- nosy: -BreamoreBoy
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue16700 _______________________________________
Change by Serhiy Storchaka storchaka+cpython@gmail.com:
---------- versions: -Python 3.5
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue16700 _______________________________________
Serhiy Storchaka storchaka+cpython@gmail.com added the comment:
This is now 2.7 only issue.
----------
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue16700 _______________________________________
Serhiy Storchaka storchaka+cpython@gmail.com added the comment:
Python 2.7 is no longer supported.
---------- resolution: -> out of date stage: needs patch -> resolved status: open -> closed
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue16700 _______________________________________