[Python-ideas] Ignorable whitespaces in the re.VERBOSE mode
Serhiy Storchaka
storchaka at gmail.com
Fri Nov 17 04:06:39 EST 2017
17.11.17 00:09, MRAB пише:
> On 2017-11-16 21:44, Serhiy Storchaka wrote:
>> 16.11.17 19:38, Guido van Rossum пише:
>>> Who would benefit from changing this? Let's not change things just
>>> because we can, or because Perl 6 does it.
>>
>> I don't know. I know the disadvantages of making this change, and I ask
>> what is the benefit. If there is a benefit, and it is important for
>> Python, I could implement this feature in re and regex.
>>
> You could see what some more languages, e.g. C#, do. If there isn't a
> consensus of some kind, it's best to leave it.
I haven't found this in the documentation, but according to the sources
it uses only 5 ASCII whitespaces (exluding \v).
Java uses 6 ASCII whitespaces.
More information about the Python-ideas
mailing list