[Python-ideas] Signature Literals

Ivan Levkivskyi levkivskyi at gmail.com
Wed Aug 30 07:38:55 EDT 2017


Hi Blaine,

A similar idea has been discussed at the typing tracker, see
https://github.com/python/typing/issues/239, but finally we went with the
current syntax. It has several advantages such as:
* It does not require a new syntax, i.e. can be backported to older Python
versions
* Possibility to define generic aliases without too much metaclass magic
* Easier to search and ask questions on stackoverflow etc.

In general, there is quite high bar to modify Python syntax, so that if
there other options are available they will be preferred.

--
Ivan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170830/104e37fc/attachment.html>


More information about the Python-ideas mailing list