8000 Remove collections ABCs? · Issue #81134 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

Remove collections ABCs? #81134

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

Closed
pganssle opened this issue May 18, 2019 · 9 comments
Closed

Remove collections ABCs? #81134

pganssle opened this issue May 18, 2019 · 9 comments
Labels
3.8 (EOL) end of life 3.9 only security fixes stdlib Python modules in the Lib dir

Comments

@pganssle
Copy link
Member
BPO 36953
Nosy @rhettinger, @ned-deily, @serhiy-storchaka, @Carreau, @yan12125, @pganssle, @eamanu, @miss-islington, @tirkarthi
PRs
  • bpo-36953: Delay removal of ABCs from collections. #13409
  • [3.7] bpo-36953: Delay removal of ABCs from collections. (GH-13409) #16675
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2019-10-07.13:21:47.846>
    created_at = <Date 2019-05-18.00:52:44.426>
    labels = ['3.8', 'library', '3.9']
    title = 'Remove collections ABCs?'
    updated_at = <Date 2019-10-15.07:30:24.791>
    user = 'https://github.com/pganssle'

    bugs.python.org fields:

    activity = <Date 2019-10-15.07:30:24.791>
    actor = 'ned.deily'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-10-07.13:21:47.846>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2019-05-18.00:52:44.426>
    creator = 'p-ganssle'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 36953
    keywords = ['patch']
    message_count = 9.0
    messages = ['342779', '342785', '342806', '344005', '354093', '354094', '354137', '354259', '354693']
    nosy_count = 10.0
    nosy_names = ['rhettinger', 'ned.deily', 'stutzbach', 'serhiy.storchaka', 'mbussonn', 'yan12125', 'p-ganssle', 'eamanu', 'miss-islington', 'xtreak']
    pr_nums = ['13409', '16675']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue36953'
    versions = ['Python 3.8', 'Python 3.9']

    @pganssle
    Copy link
    Member Author

    In PR 5640 (#5460), a warning was added that importing ABCs from collections directly is deprecated and will be removed in Python 3.8, but they have not yet been removed and the warning is still active.

    If they are going to be removed, presumably it needs to be done before the feature freeze at the end of May, otherwise, in the meantime, I think the warning needs to be updated to say that it will be removed in Python 3.9.

    @pganssle pganssle added 3.8 (EOL) end of life 3.9 only security fixes stdlib Python modules in the Lib dir labels May 18, 2019
    @tirkarthi
    Copy link
    Member

    Relevant PR and discussion : #10596 . pip is incompatible due to the vendored copy of html5lib that needs a new release .

    @Carreau
    Copy link
    Mannequin
    Carreau mannequin commented May 18, 2019

    Should it still raise an informative error message with ImportError:

    ImportError: cannot import name 'XXX' from 'collections', please import it from 'collections.abc'.

    or just the "cannot import name 'XXXX'" without the "please import it from 'collections.abc'." ?

    @miss-islington
    Copy link
    Contributor

    New changeset eea47e0 by Miss Islington (bot) (Matthias Bussonnier) in branch 'master':
    bpo-36953: Delay removal of ABCs from collections. (GH-13409)
    eea47e0

    @tirkarthi
    Copy link
    Member

    The removal was done in https://bugs.python.org/issue25988 . Given that the version in warning message was updated I guess this can be closed.

    @yan12125
    Copy link
    Mannequin
    yan12125 mannequin commented Oct 7, 2019

    Lib/collections/init.py on branch 3.7 still states:

    Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working

    I think it should also be updated (hopefully before 3.7.5?) as the actual removal turns out to be in 3.9.

    @eamanu
    Copy link
    Mannequin
    eamanu mannequin commented Oct 7, 2019

    Now was remove from 3.7

    ef092fe

    This issue should be closed, isn't?

    @miss-islington
    Copy link
    Contributor

    New changeset 056fa7f by Miss Islington (bot) in branch '3.7':
    bpo-36953: Delay removal of ABCs from collections. (GH-13409)
    056fa7f

    94BA

    @ned-deily
    Copy link
    Member

    New changeset 42b16b2 by Ned Deily (Miss Islington (bot)) in branch '3.7':
    bpo-36953: Delay removal of ABCs from collections. (GH-13409)
    42b16b2

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    3.8 (EOL) end of life 3.9 only security fixes stdlib Python modules in the Lib dir
    Projects
    None yet
    Development

    No branches or pull requests

    5 participants
    0