Issue 16700: Document that bytes OS API can returns unusable results on Windows (original ) (raw )Created on 2012-12-16 16:58 by serhiy.storchaka , last changed 2022-04-11 14:57 by admin . This issue is now closed .
Messages (8)
msg177613 - (view)
Author: Serhiy Storchaka (serhiy.storchaka) *
Date: 2012-12-16 16:58
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 and ). The documentation should contains strong warnings about this.
msg177624 - (view)
Author: STINNER Victor (vstinner) *
Date: 2012-12-16 19:49
I don't remember il the deprecation of bytes filename is documented.
msg228370 - (view)
Author: Mark Lawrence (BreamoreBoy) *
Date: 2014-10-03 20:28
As #13247 has been closed "not a bug" and #16656 "won't fix" shouldn't this be done sooner rather than later?
msg275892 - (view)
Author: Steve Kowalik (stevenk)
Date: 2016-09-12 00:07
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.
msg275893 - (view)
Author: Barry A. Warsaw (barry) *
Date: 2016-09-12 00:07
Thanks Steve! Closing.
msg276740 - (view)
Author: Serhiy Storchaka (serhiy.storchaka) *
Date: 2016-09-16 19:14
Maybe this issue is outdated in 3.6 (thanks to PEP 529 ), but this still is a problem under 3.5 and 2.7.
msg304732 - (view)
Author: Serhiy Storchaka (serhiy.storchaka) *
Date: 2017-10-22 07:52
This is now 2.7 only issue.
msg370450 - (view)
Author: Serhiy Storchaka (serhiy.storchaka) *
Date: 2020-05-31 13:31
Python 2.7 is no longer supported.
History
Date
User
Action
Args
2022-04-11 14:57:39
admin
set
github: 60904
2020-05-31 13:31:16
serhiy.storchaka
set
status: open -> closedresolution: out of datemessages: + stage: needs patch -> resolved
2017-10-22 07:52:54
serhiy.storchaka
set
messages: +
2017-10-22 07:40:26
serhiy.storchaka
set
versions: - Python 3.5
2016-09-16 21:16:35
BreamoreBoy
set
nosy: - BreamoreBoy
2016-09-16 19:14:15
serhiy.storchaka
set
status: closed -> openmessages: + versions: + Python 3.5, - Python 3.3, Python 3.4
2016-09-12 00:07:55
barry
set
status: open -> closednosy: + barry messages: +
2016-09-12 00:07:12
stevenk
set
nosy: + stevenk messages: +
2014-10-03 20:28:34
BreamoreBoy
set
nosy: + BreamoreBoy messages: +
2013-08-22 09:08:49
serhiy.storchaka
set
versions: - Python 3.2
2013-01-15 18:28:12
serhiy.storchaka
set
keywords: + easy
2012-12-16 19:49:43
vstinner
set
messages: +
2012-12-16 17:07:06
pitrou
set
nosy: + vstinner
2012-12-16 16:58:37
serhiy.storchaka
create