[New-bugs-announce] [issue30143] Using collections ABC from collections.abc rather than collections in 2to3 converted code

Serhiy Storchaka report at bugs.python.org
Sun Apr 23 08:11:25 EDT 2017


New submission from Serhiy Storchaka:

Proposed patch makes 2to3 generating a code that uses abstract collection classes Sequence and Mapping from collections.abc rather than collections. Since abstract collection classes now are defined in collections.abc and collections contains only aliases for compatibility, this is more idiomatic Python 3 code.

----------
components: 2to3 (2.x to 3.x conversion tool)
messages: 292163
nosy: benjamin.peterson, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Using collections ABC from collections.abc rather than collections in 2to3 converted code
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30143>
_______________________________________


More information about the New-bugs-announce mailing list