[issue6561] Regex '\d' should not match unicode category 'No'.

2009-07-28 Thread Mark Dickinson
Mark Dickinson added the comment: Backported to trunk in r74240. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue6561] Regex '\d' should not match unicode category 'No'.

2009-07-28 Thread Mark Dickinson
Mark Dickinson added the comment: [ezio.melotti] > I suggest something like: > Matches the decimal digits ``[0-9]`` and all the characters that belong > to the Unicode category Nd (Number, Decimal Digit). Hmm. I don't like this because it suggests (to me) that the characters [0-9] don't belon

[issue6561] Regex '\d' should not match unicode category 'No'.

2009-07-26 Thread R. David Murray
R. David Murray added the comment: It may be redundant, but it is also more technically accurate. I'm -0 on your proposed rephrasing, and trust Mark to make the right decision :) -- nosy: +r.david.murray ___ Python tracker

[issue6561] Regex '\d' should not match unicode category 'No'.

2009-07-25 Thread Ezio Melotti
Ezio Melotti added the comment: This seems to me quite redundant: + Matches any Unicode decimal digit; more specifically, matches + any character in Unicode category [Nd] (Number, Decimal Digit). + This includes ``[0-9]``, and also many other digit characters. I suggest something

[issue6561] Regex '\d' should not match unicode category 'No'.

2009-07-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: This sounds reasonable to me. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue6561] Regex '\d' should not match unicode category 'No'.

2009-07-24 Thread Mark Dickinson
Changes by Mark Dickinson : Removed file: http://bugs.python.org/file14558/issue6561.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6561] Regex '\d' should not match unicode category 'No'.

2009-07-24 Thread Mark Dickinson
Mark Dickinson added the comment: New patch; same as before, but includes clarification to the documentation. -- Added file: http://bugs.python.org/file14559/issue6561.patch ___ Python tracker ___

[issue6561] Regex '\d' should not match unicode category 'No'.

2009-07-24 Thread Mark Dickinson
Mark Dickinson added the comment: Patch against py3k. -- keywords: +patch Added file: http://bugs.python.org/file14558/issue6561.patch ___ Python tracker ___

[issue6561] Regex '\d' should not match unicode category 'No'.

2009-07-24 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue6561] Regex '\d' should not match unicode category 'No'.

2009-07-24 Thread Mark Dickinson
New submission from Mark Dickinson : In Python 3, or in Python 2 with the re.UNICODE flag, it appears that the regex r'\d' matches all unicode characters with category either 'Nd' (Number, Decimal Digit) or 'No' (Number, Other), but not characters in category 'Nl' (Number, Letter): Python 3.2