[docs] [issue13219] re module doc has minor inaccuracy in character sets
Florent Xicluna
report at bugs.python.org
Thu Oct 20 19:10:50 CEST 2011
Florent Xicluna <florent.xicluna at gmail.com> added the comment:
Well, the actual behavior is a little bit more complex to describe.
>>> re.match('[.-_a-z]', '-')
>>> re.match('[._-a-z]', '-')
<_sre.SRE_Match object at 0x100418e80>
>>> re.match('[.-_a-z]', 'b')
<_sre.SRE_Match object at 0x100418b88>
>>> re.match('[._-a-z]', 'b')
However, I don't think it is worth changing again the documentation.
----------
nosy: +flox
type: -> behavior
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13219>
_______________________________________
More information about the docs
mailing list