[issue44353] PEP 604 NewType

Dominic Davis-Foster report at bugs.python.org
Thu Jun 10 03:36:45 EDT 2021


Dominic Davis-Foster <dominic at davis-foster.co.uk> added the comment:

It is possible to implement NewType to return a class rather than a function as it does currently. However, the class version uses substantially more memory (1072 bytes vs 144 bytes with sys.getsizeof) and NewType is supposed to have almost no runtime overhead.

----------
nosy: +domdfcoding

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


More information about the Python-bugs-list mailing list