Dominic Davis-Foster <domi...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue44353>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to