[Python-ideas] π = math.pi

Ivan Levkivskyi levkivskyi at gmail.com
Sat Jun 3 16:07:18 EDT 2017


On 3 June 2017 at 21:55, MRAB <python at mrabarnett.plus.com> wrote:

> [...]
>>
>
> Interestingly, '_' doesn't have that property, although Python does allow
> identifiers to start with it.


Yes, it is special cased:

    if (!_PyUnicode_IsXidStart(first) && first != 0x5F /* LOW LINE */)
        return 0;

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


More information about the Python-ideas mailing list