[issue18779] Misleading documentations and comments in regular expression HOWTO

2017-02-14 Thread A.M. Kuchling
A.M. Kuchling added the comment: Unfortunately making the sentences pedantically correct also makes them ungainly, and I think people generally assume that underscores are treated as a letter. -- nosy: +akuchling resolution: -> wont fix stage: patch review -> resolved status: open ->

[issue18779] Misleading documentations and comments in regular expression HOWTO

2014-12-31 Thread A.M. Kuchling
Changes by A.M. Kuchling : -- nosy: -akuchling ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue18779] Misleading documentations and comments in regular expression HOWTO

2013-08-19 Thread R. David Murray
R. David Murray added the comment: The answer to the question about "alphanumerics" versus "alphanumeric characters" is that is is mostly likely context-dependent, so I'd have to see particular examples to say which I though read better. So, there is no One True Answer for this question, I th

[issue18779] Misleading documentations and comments in regular expression HOWTO

2013-08-19 Thread Vajrasky Kok
Vajrasky Kok added the comment: In Lib/re.py, starting from line 77 (Python 3.4): \w Matches any alphanumeric character; equivalent to [a-zA-Z0-9_] in bytes patterns or string patterns with the ASCII flag. In string patterns without the ASCII flag, it will mat

[issue18779] Misleading documentations and comments in regular expression HOWTO

2013-08-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: I was wondering which doc you were alluding it, before I noticed your patch is against the regex HOWTO. The HOWTO seems quite outdated wrt. Python 3. For example "\w" is not equivalent to "[a-zA-Z0-9_]", anymore, except with the ASCII flag. -- title: M