Skip to content

Warning regarding collections ABCs still present in 3.9 #82098

Closed

Description

@MichaelAnckaert
BPO 37917
Nosy @vstinner, @MichaelAnckaert, @tirkarthi
Superseder
  • bpo-37324: collections: remove deprecated aliases to ABC classes
  • 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-08-22.15:54:25.980>
    created_at = <Date 2019-08-22.15:50:18.659>
    labels = ['type-bug', 'library', '3.9']
    title = 'Warning regarding collections ABCs still present in 3.9'
    updated_at = <Date 2019-08-22.15:56:41.633>
    user = 'https://github.com/MichaelAnckaert'

    bugs.python.org fields:

    activity = <Date 2019-08-22.15:56:41.633>
    actor = 'xtreak'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-08-22.15:54:25.980>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2019-08-22.15:50:18.659>
    creator = 'michaelanckaert'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 37917
    keywords = []
    message_count = 3.0
    messages = ['350202', '350204', '350205']
    nosy_count = 3.0
    nosy_names = ['vstinner', 'michaelanckaert', 'xtreak']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '37324'
    type = 'behavior'
    url = 'https://bugs.python.org/issue37917'
    versions = ['Python 3.9']

    Activity

    1. MichaelAnckaert commented on Aug 22, 2019

      MichaelAnckaertmannequin
      MannequinAuthor

      When importing an ABC from the collections module in Python 3.9 there is a warning that this is deprecated since Python 3.3 and will stop working in Python 3.9.

      Should this warning be removed and lead to an ImportError?

      Python 3.9.0a0 (heads/master:a38e9d1399, Aug 22 2019, 17:48:16) 
      [GCC 8.3.1 20190223 (Red Hat 8.3.1-2)] on linux
      Type "help", "copyright", "credits" or "license" for more information.
      >>> from collections import Sequence
      <stdin>:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      type-bugAn unexpected behavior, bug, or error
      on Aug 22, 2019
    3. vstinner commented on Aug 22, 2019

      @vstinner
      Member

      It's a work-in-progress: see bpo-37324.

    4. tirkarthi commented on Aug 22, 2019

      @tirkarthi
      Member

      Please see discussion at bpo-36953 and bpo-37324. It's currently blocked by Jinja that doesn't have a release with the fix to be used in CI.

    5. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions