[issue42329] typing classes do not have __name__ attributes in 3.7+

Guido van Rossum report at bugs.python.org
Wed Nov 11 23:47:01 EST 2020


Guido van Rossum <guido at python.org> added the comment:

Between 3.6 and 3.7 they stopped being types.

IIRC this enabled optimizations. (Serhiy?)

I don't think this is important, but I suppose you have some code that this breaks?

The name is passed to the constructor of _SpecialGenericAlias, so I'm fine with fixing this, though the backports may get tricky when you get down to 3.7.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42329>
_______________________________________


More information about the Python-bugs-list mailing list