[Python-ideas] Allow additional separator character in variables

Antoine Pitrou solipsis at pitrou.net
Sun Nov 19 06:05:33 EST 2017


On Sun, 19 Nov 2017 09:38:17 +0200
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

This is going to make for some fun code reviews.

Regards

Antoine.




More information about the Python-ideas mailing list