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

2017-11-15 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-11-15 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset 0a2abdfca2495291809855cf7dfc6721c9c962e3 by Serhiy Storchaka in 
branch 'master':
bpo-30143: 2to3 now generates a code that uses abstract collection classes 
(#1262)
https://github.com/python/cpython/commit/0a2abdfca2495291809855cf7dfc6721c9c962e3


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-11-15 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

+1 I think this change will be essential.  IIRC, elsewhere Guido approved a 3.7 
change so that the ABC will no longer be visible in collections.

--
nosy: +rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-11-15 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

What are your thoughts about this Benjamin?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-04-23 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
pull_requests: +1375

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2017-04-23 Thread Serhiy Storchaka

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com