Skip to content

xml.etree.cElementTree removed from Python 3.9 #2002

Closed

Description

@freddrake

With newer versions of Python, xml.etree.ElementTree should be used directly.

Activity

  1. self-assigned this
    on Mar 25, 2020
  2. swetashre commented on Mar 27, 2020

    @swetashre
    Contributor

    @freddrake - Thank you for your post. Python 3.9 won’t get offically released till October: https://www.python.org/dev/peps/pep-0596/#schedule. But we will need to update the botocore code to not use that interface before that happens. Marking this as enhancement.

  3. added
    feature-request
    enhancement
    and removed
    feature-request
    on Mar 27, 2020
  4. freddrake commented on Mar 27, 2020

    @freddrake
    Author

    Right. For people trying to make sure their applications are prepared, it's important that dependencies are compatible. It's not urgent, because there's still plenty of time in the schedule, but the sooner dependencies are ready, the better it is for everyone.

    For the record, finding this issue also triggered a couple of (small-ish) bugs reported against Python:

  5. StevenMapes commented on Apr 8, 2020

    @StevenMapes

    @swetashre All you need to do, for now, is and it should keep working in Python 3.9

    try:
        import xml.etree.cElementTree
    except ImportError:
        import xml.etree.ElementTree as cElementTree
  6. caje731 commented on Apr 23, 2020

    @caje731
    Contributor

    I've run my change-set in the linked PR against
    Python 3.9.0a5+ (heads/master:a25a04fea5, Apr 20 2020, 22:35:10)
    and all good!

    -------------------------------------------------------------------------------
    TOTAL                                                       10653    448    96%
    ----------------------------------------------------------------------
    Ran 6977 tests in 466.608s
    
    OK
    ___________________________________summary_____________________________________
      py39: commands succeeded
      congratulations :)
    
    
  7. added a commit that references this issue on Jul 8, 2020
  8. added a commit that references this issue on Jan 20, 2021
  9. added a commit that references this issue on Jan 20, 2021
  10. added 2 commits that reference this issue on Jul 19, 2021
  11. added a commit that references this issue on Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions