This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients Daniel Moisset, rhettinger
Date 2016-07-13.15:22:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1468423364.32.0.677324345655.issue27501@psf.upfronthosting.co.za>
In-reply-to
Content
I'll defer to typing gurus as to whether something like this might make sense in typing.py, but it doesn't make much sense as a collections.abc without an API exposed in pure python and without useful mixin methods.  By way of comparison, consider that the named tuple protocol is in typing.NamedTuple but  not in collections.abc; instead, we just use _fields to recognize it when the need arises (which is almost never).   

I would like collections.abc to remain a place for ABCs that can be usefully subclassed, that provide guaranteed behaviors, and that are in fact related to collections.  The module's utility will be impaired if it becomes a dumping ground for miscellaneous type hinting concepts and registrations.

Early on there was some experimentation with the "one-trick ponies" in collections.abc such as Callable and Hashable that turned-out to almost never be used in practice, so we don't want to continue to that line of development when there are more promising avenues such as typing.py.
History
Date User Action Args
2016-07-13 15:22:44rhettingersetrecipients: + rhettinger, Daniel Moisset
2016-07-13 15:22:44rhettingersetmessageid: <1468423364.32.0.677324345655.issue27501@psf.upfronthosting.co.za>
2016-07-13 15:22:44rhettingerlinkissue27501 messages
2016-07-13 15:22:44rhettingercreate