homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author orsenthil
Recipients ezio.melotti, orsenthil, python-dev
Date 2012年04月06日.05:38:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1333690706.6.0.543250248239.issue14258@psf.upfronthosting.co.za>
In-reply-to
Content
Well, I would like to correct this further and add clarification based on the current implementation (_sre.c)
The definition of LOCALE Space is this -
 #define SRE_LOC_IS_SPACE(ch) (!((ch) & ~255) ? isspace((ch)) : 0)
And the definition of NON_SPACE category is a negation of space. That's it.
Now, given that definition, we see for the character values higher than 255, the check is not made at all. Is it simple ascii isspace is considered when the LOCALE flag is set. And in effect, re.LOCALE flag has not extra effect on matching of space or non-white space character.
After realizing this, I propose the following changes attached in the patch as a documentation fix.
History
Date User Action Args
2012年04月06日 05:38:26orsenthilsetrecipients: + orsenthil, ezio.melotti, python-dev
2012年04月06日 05:38:26orsenthilsetmessageid: <1333690706.6.0.543250248239.issue14258@psf.upfronthosting.co.za>
2012年04月06日 05:38:26orsenthillinkissue14258 messages
2012年04月06日 05:38:25orsenthilcreate

AltStyle によって変換されたページ (->オリジナル) /