[Python-Dev] Adding NewType() to PEP 484 (original) (raw)

Brett Cannon brett at python.org
Fri May 27 15:50:40 EDT 2016


Patches to Python's stdlib should go through bugs.python.org so it isn't lost in email.

On Fri, May 27, 2016, 12:00 Ivan Levkivskyi <levkivskyi at gmail.com> wrote:

Hi,

It has been proposed to enhance the typing module with a NewType function that allows to define simple unique types with almost zero runtime overhead. The PR containing actual implementation and PEP 484 update is here: https://github.com/python/typing/pull/226 Review comments are very welcome. Best regards, Ivan


Python-Dev mailing list Python-Dev at python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/brett%40python.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160527/8579a38e/attachment.html>



More information about the Python-Dev mailing list