Uh oh!
There was an error while loading. Please reload this page.
bpo-39674: Revert "bpo-25988: Do not expose abstract collection classes in the collections module. (GH-10596)" - #18545
Conversation
vstinner
commented
Feb 18, 2020
Since https://bugs.python.org/issue39674 is controversial, I would prefer to get at least one formal approval of this revert from core developers. |
serhiy-storchaka
left a comment
There was a problem hiding this comment.
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.
|
vstinner
commented
Feb 18, 2020
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). |
vstinner
commented
Feb 18, 2020
Fedora packages reported failures to most packages upstream and for some of them, we even proposed fixes. |
vstinner
commented
Feb 18, 2020
The macOS failure is: https://bugs.python.org/issue38691 |
vstinner
commented
Feb 18, 2020
Merged, thanks for the approval @serhiy-storchaka and @gvanrossum. |
terryjreedy
commented
Feb 18, 2020
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. |
vstinner
commented
Mar 2, 2020
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