[Python-ideas] Allow additional separator character in variables

Nick Timkovich prometheus235 at gmail.com
Sun Nov 19 03:09:14 EST 2017


I guess for reference:

exec('a\N{MIDDLE DOT} = 0')
exec('\N{BUHID LETTER RA} = 1')
exec('\N{HANGUL LETTER EU} = 2')
exec('\N{TIFINAGH LETTER YO} = 3')
exec('\N{BOPOMOFO LETTER I} = 4')
exec('\N{HANGUL LETTER ARAEA} = 5')

On Sun, Nov 19, 2017 at 1:38 AM, Serhiy Storchaka <storchaka at gmail.com>
wrote:

> 19.11.17 04:01, Mikhail V пише:
>
>> Python allows underscore character as a separator in variables.
>> This is better than nothing, still it does not make the look much better.
>>
>> **Proposal**: allow additional separator, namely hyphen character.
>>
>
> You already can use "separators" different from the underscore.
>
> my·variable
> myᝍvariable
> myㅡvariable
> myⵧvariable
> myㄧvariable
> myㆍvariable
>
> Be lucky to distinguish one "separator" from other.
>
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20171119/66d0bd4c/attachment.html>


More information about the Python-ideas mailing list