-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shutil.make_archive now fails with pathlib.Path object in Python 3.11.0b4 #94844
Comments
It was not documented, and it only worked if So we now have several options:
|
Co-authored-by: Barney Gale <barney.gale@gmail.com>
…honGH-94846) Co-authored-by: Barney Gale <barney.gale@gmail.com> (cherry picked from commit ed44415) Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
…honGH-94846) Co-authored-by: Barney Gale <barney.gale@gmail.com> (cherry picked from commit ed44415) Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
Don’t see any revert in file history: https://github.com/python/cpython/commits/3.11/Lib/shutil.py |
Yeah, I think I misunderstood (or confused this with another, unrelated issue). It looks like this was fixed by GH-94846. |
#94846 only restored the old behavior which was an implementation artifact -- undocumented and not consistent. Path-like object as If we want to make it an official feature, we should document it, cover by tests, and make it working for |
Then let's do the latter -- make it work for more cases, document it (lightly), and test it (briefly). And it's worth a new issue. |
Bug report
This code works on Python 3.10 and Python 3.11.0a5 but raises a
TypeError
in Python 3.11.0b4:Here's the output I see in Python 3.11.0b4:
Your environment
The text was updated successfully, but these errors were encountered: