[proxy] web.archive.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light
/ cpython Public

Conversation

Copy link
Member

serhiy-storchaka commented Sep 17, 2017

Affected classes are bytearray, array, deque, defaultdict, count and repeat.

https://bugs.python.org/issue27541

Copy link
Contributor

rhettinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only one I have misgivings about is itertools.count() doesn't seem to be meaningfully subclassable. But changing the repr for count doesn't have any negative effect, so +0 for changing it.

…e name.

Affected classes are bytearray, array, deque, defaultdict, count and repeat.
Copy link
Member Author

serhiy-storchaka commented Sep 17, 2017

Maybe make count and repeat not subclassable?

serhiy-storchaka force-pushed the collections-repr-type-name branch from 9df3e22 to 6e75a20 Compare September 17, 2017 18:16
serhiy-storchaka merged commit b3a7796 into python:master Sep 21, 2017
serhiy-storchaka deleted the collections-repr-type-name branch September 21, 2017 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants