New submission from Sam Bishop :
Range types are perfectly valid as values in an enum, like so.
class EnumOfRanges(Enum):
ZERO = range(0, 0)
RANGE_A = range(1, 11)
RANGE_B = range(11, 26)
However unlike the other base types , 'int', 'str', 'float
Sam Bishop added the comment:
Would the enhancements to resolve this, by making singledispatch accept more
things, also resolve the AssertionError from functools.singledispatch when
passing it custom types, or should I raise this as a separate issue
Sam Bishop added the comment:
I specified 'during class initialisation' because that was the only case I
confirmed.
--
___
Python tracker
<http://bugs.python.o
New submission from Sam Bishop:
The output of performing "dir(__class__)" during a class' __init__ method,
seems to be lacking the new '__qualname__' attribute in python 3.
This rough test can be pasted right into the python 3.4 REPL to see the issue.
Tested on 64bit