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 BvB93
Recipients BvB93, JelleZijlstra, farcat, gvanrossum, kj, lars2, lukasz.langa, miss-islington, serhiy.storchaka, uriyyo
Date 2021-08-05.10:30:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I do agree that it's nice to have a `__name__` for special forms, as they do very much behave like types even though they're strictly speaking not distinct classes.

Whether we should have this feature is a distinct "problem" from its `__name__` being `None` (as can happen in its the current implementation), 
the latter of which is actively breaking tests over in
I don't recall ever seeing a non-string name before, so I'd argue that this is a bug.

It seems to be easy to fix though (see below for a `Union` example), so if there are objections I'd like to submit a PR.

-    return _UnionGenericAlias(self, parameters)
+    return _UnionGenericAlias(self, parameters, name="Union")
Date User Action Args
2021-08-05 10:30:29BvB93setrecipients: + BvB93, gvanrossum, farcat, lukasz.langa, serhiy.storchaka, JelleZijlstra, miss-islington, uriyyo, kj, lars2
2021-08-05 10:30:29BvB93setmessageid: <>
2021-08-05 10:30:29BvB93linkissue44524 messages
2021-08-05 10:30:29BvB93create