-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
bpo-39674: Revert "bpo-25988: Do not expose abstract collection classes in the collections module. (GH-10596)" #18545
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
Conversation
Since https://bugs.python.org/issue39674 is controversial, I would prefer to get at least one formal approval of this revert from core developers. cc @brettcannon @warsaw @serhiy-storchaka @gvanrossum @zooba |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I do not care about other removals, but this change looks affecting too much code.
Codecov Report
@@ Coverage Diff @@
## master #18545 +/- ##
===========================================
- Coverage 83.25% 82.12% -1.14%
===========================================
Files 1571 1955 +384
Lines 414749 584050 +169301
Branches 44456 44457 +1
===========================================
+ Hits 345302 479622 +134320
- Misses 59795 94780 +34985
+ Partials 9652 9648 -4
Continue to review full report at Codecov.
|
Data point from Fedora packages: around 65 packages failed to build because of commit ef092fe which removed the collections aliases. See Miro's email: https://mail.python.org/archives/list/python-dev@python.org/message/LGGI42UEQMJVNW2ZHEP473Z7ZQ5BDBPL/ This revert should fix most of these packages. "most" because we don't know if packages build will fail for another reasons (maybe another deprecated function removed from Python 3.9). |
Fedora packages reported failures to most packages upstream and for some of them, we even proposed fixes. |
The macOS failure is: https://bugs.python.org/issue38691 |
Merged, thanks for the approval @serhiy-storchaka and @gvanrossum. |
Shouldn't '3.8' in FWIW, I also think this 1 reversion was the best thing to do and perhaps had more support than revert nothing and revert multiple things. |
Right: I created #18747 to update the doc. |
The deprecation originally slated for 3.9 was deferred to 3.10 (bpo-39674, pythonGH-18545) and the documentation on the 3.8 release was updated accordingly (pythonGH-18748). However the deprecation notice in the code was left as is, and still indicates deprecation with 3.9.
The deprecation originally slated for 3.9 was deferred to 3.10 (bpo-39674, pythonGH-18545). However the deprecation notice in the release was left as is, and still indicates deprecation with 3.9. Also add a missing space in the message.
This reverts commit ef092fe.
Update collections getattr() and documentation to defer aliases
removal to Python 3.10.
https://bugs.python.org/issue39674