Allow additional separator character in variables

Chris Angelico rosuav at gmail.com
Thu Nov 23 09:42:24 EST 2017


On Fri, Nov 24, 2017 at 1:39 AM, Mikhail V <mikhailwas at gmail.com> wrote:
> Chris A wrote:
>
> On Fri, Nov 24, 2017 at 1:10 AM, Mikhail V <mikhailwas at gmail.com> wrote:
>>
>> > Well, then there is some bitter irony in this, so it allows pretty
>> > much everything,
>> > but does not allow me to beautify code with hyphens.
>> > I can fully understand the wish to use non-latin scripts in strings or comments.
>> > As for identifiers, IMO, apart from latin letters and underscore, the
>> > first unicode candidate
>> > I would add is U+2010. And probably the LAST one I would add.
>> >
>>
>> Fortunately for the world, you're not the one who decided which
>> characters were permitted in Python identifiers. The ability to use
>> non-English words for function/variable names is of huge value; the
>> ability to use a hyphen is of some value, but not nearly as much.
>>
>
>
> Fortunately for the world we have Chris A. Who knows what is
> fortunate and of huge values.
> So is there any real world projects example of usage of non-latin scripts
> in identifiers? Or is it still only a plan for the new world?

Yes, I've used them personally. And I know other people who have.

ChrisA



More information about the Python-list mailing list