This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Wrong statement that bytes paths are deprecated under Windows regarding MAX_PATH docs
Type: behavior Stage: resolved
Components: Windows Versions: Python 3.10, Python 3.9, Python 3.8
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: ZackerySpytz, ericzolf, miss-islington, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords: patch

Created on 2020-05-31 05:40 by ericzolf, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 20570 merged ZackerySpytz, 2020-06-01 10:42
PR 20573 merged miss-islington, 2020-06-01 15:44
PR 20574 merged miss-islington, 2020-06-01 15:44
PR 20575 merged miss-islington, 2020-06-01 15:44
Messages (9)
msg370414 - (view) Author: Eric L. (ericzolf) * Date: 2020-05-31 05:40
In chapter 3.1.2. Removing the MAX_PATH Limitation of https://docs.python.org/3/using/windows.html#removing-the-max-path-limitation (also in 3.9 and 3.10), it is written that "(Use of bytes as paths is deprecated on Windows, and this feature is not available when using bytes.)" but my understanding is that since 3.8 bytes paths are _not_ deprecated any more under Windows (and it is good so!), which makes unclear if the feature is still not available with bytes paths. In which case, it should be implemented.

I'm sorry I couldn't test if it actually works or not but I'm stuck with Python 3.7 where I guess the statement is still correct, but I hope to see the issue fixed once I can upgrade :-)
msg370419 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2020-05-31 08:27
That's correct, though I thought PEP 528 and 529 applied earlier than that? Around 3.6, I thought.

Feel free to make a doc update though. That reference is definitely out of date.
msg370422 - (view) Author: Eric L. (ericzolf) * Date: 2020-05-31 10:49
The question is if only the statement that bytes are deprecated is wrong, but also if the long path feature is supported with bytes or not. As written, I'm a Linux guy, I don't feel like I have the pre-requisites to check this properly.
msg370543 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2020-06-01 08:45
Python now decodes bytes back into a str when used as a path, so the behaviour is identical.

Someone else might feel comfortable doing the patch, I didn't mean to imply that you had to. Only that it is a valid fix and won't be a waste of time.
msg370546 - (view) Author: Zackery Spytz (ZackerySpytz) * (Python triager) Date: 2020-06-01 10:44
I have created a fix for this issue.  Please consider taking a look.
msg370557 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2020-06-01 15:44
New changeset c8966667bbdb284c3780ef6cec8a3870935a6bb7 by Zackery Spytz in branch 'master':
bpo-40831: Remove an incorrect statement in the Windows docs (GH-20570)
https://github.com/python/cpython/commit/c8966667bbdb284c3780ef6cec8a3870935a6bb7
msg370558 - (view) Author: miss-islington (miss-islington) Date: 2020-06-01 15:53
New changeset a169961dfc777eb467a2b1027391285a7706329a by Miss Islington (bot) in branch '3.9':
bpo-40831: Remove an incorrect statement in the Windows docs (GH-20570)
https://github.com/python/cpython/commit/a169961dfc777eb467a2b1027391285a7706329a
msg370559 - (view) Author: miss-islington (miss-islington) Date: 2020-06-01 15:53
New changeset d0dc369a90e356bf2eba651816feb7ad736ce28a by Miss Islington (bot) in branch '3.8':
bpo-40831: Remove an incorrect statement in the Windows docs (GH-20570)
https://github.com/python/cpython/commit/d0dc369a90e356bf2eba651816feb7ad736ce28a
msg370560 - (view) Author: miss-islington (miss-islington) Date: 2020-06-01 15:53
New changeset d7f2fd2ae54161362c7f3d28bd7a1840a796e63d by Miss Islington (bot) in branch '3.7':
bpo-40831: Remove an incorrect statement in the Windows docs (GH-20570)
https://github.com/python/cpython/commit/d7f2fd2ae54161362c7f3d28bd7a1840a796e63d
History
Date User Action Args
2022-04-11 14:59:31adminsetgithub: 85008
2020-06-01 15:53:54steve.dowersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2020-06-01 15:53:42miss-islingtonsetmessages: + msg370560
2020-06-01 15:53:36miss-islingtonsetmessages: + msg370559
2020-06-01 15:53:34miss-islingtonsetmessages: + msg370558
2020-06-01 15:44:34miss-islingtonsetpull_requests: + pull_request19815
2020-06-01 15:44:24miss-islingtonsetpull_requests: + pull_request19814
2020-06-01 15:44:16miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request19813
2020-06-01 15:44:07steve.dowersetmessages: + msg370557
2020-06-01 10:44:41ZackerySpytzsetmessages: + msg370546
2020-06-01 10:42:49ZackerySpytzsetkeywords: + patch
nosy: + ZackerySpytz

pull_requests: + pull_request19810
stage: patch review
2020-06-01 08:45:35steve.dowersetmessages: + msg370543
2020-05-31 10:49:10ericzolfsetmessages: + msg370422
2020-05-31 08:27:28steve.dowersetmessages: + msg370419
2020-05-31 05:40:41ericzolfcreate