Eugene Toder added the comment:
Agreed, but this is not new. This works without my change:
>>> class Tuple(tuple):
... __slots__ = ()
... def __repr__(self): return 'Imma tuple!'
...
>>> ().__class__ = Tuple
>>> ()
Imma tuple!
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue23726>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com