[issue3665] Support \u and \U escapes in regexes

2012-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for the quick response. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue3665] Support \u and \U escapes in regexes

2012-06-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Any chance to commit the patch today and to get this feature in Python > 3.3? Thanks for reminding us! It's now in 3.3. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed _

[issue3665] Support \u and \U escapes in regexes

2012-06-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset b1dbd8827e79 by Antoine Pitrou in branch 'default': Issue #3665: \u and \U escapes are now supported in unicode regular expressions. http://hg.python.org/cpython/rev/b1dbd8827e79 -- nosy: +python-dev ___

[issue3665] Support \u and \U escapes in regexes

2012-06-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> pitrou stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list ma

[issue3665] Support \u and \U escapes in regexes

2012-06-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Any chance to commit the patch today and to get this feature in Python 3.3? -- ___ Python tracker ___

[issue3665] Support \u and \U escapes in regexes

2012-06-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I forgot about byte patterns. Here is an updated patch. -- Added file: http://bugs.python.org/file26040/re_unicode_escapes-3.patch ___ Python tracker

[issue3665] Support \u and \U escapes in regexes

2012-06-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is updated (in conforming with PEP 393) patch. In additional octal and hexadecimal escaping cleared, illegal error message for hexadecimal escaping fixed. Added new tests for octal and hexadecimal escaping. -- Added file: http://bugs.python.org

[issue3665] Support \u and \U escapes in regexes

2012-06-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Georg, Atsuo, how are you? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue3665] Support \u and \U escapes in regexes

2012-05-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file25784/3665.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue3665] Support \u and \U escapes in regexes

2012-05-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file25783/re_unicode_escapes.diff ___ Python tracker ___ ___ Python-bugs-list

[issue3665] Support \u and \U escapes in regexes

2012-05-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file25782/3665.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue3665] Support \u and \U escapes in regexes

2012-05-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file25781/re_unicode_escapes.diff ___ Python tracker ___ ___ Python-bugs-lis

[issue3665] Support \u and \U escapes in regexes

2012-05-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file25782/3665.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue3665] Support \u and \U escapes in regexes

2012-05-31 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file25781/re_unicode_escapes.diff ___ Python tracker ___ ___ Python-bugs-list

[issue3665] Support \u and \U escapes in regexes

2012-05-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think it is worth to target it for 2.7 and 3.2 (it's new feature, not bugfix), but for 3.3 it will be very useful. Since PEP 393 conversion to the surrogate pairs is no longer relevant. -- components: +Regular Expressions, Unicode nosy: +sto

[issue3665] Support \u and \U escapes in regexes

2011-11-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +mrabarnett ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue3665] Support \u and \U escapes in regexes

2011-07-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +needs review stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue3665] Support \u and \U escapes in regexes

2011-06-12 Thread Éric Araujo
Éric Araujo added the comment: FYI, +raise error("bogus escape: %s" % repr(escape)) can be written simply as +raise error("bogus escape: %r" % escape) -- nosy: +eric.araujo ___ Python tracker

[issue3665] Support \u and \U escapes in regexes

2011-06-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue3665] Support \u and \U escapes in regexes

2010-08-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue3665] Support \u and \U escapes in regexes

2010-07-10 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Here's an updated patch for py3k branch. As per Georg's comment, I added to check codepoint in the character ranges, conversion to the surrogate pairs. I also added check to raise exception if codepoint > 0x10. I with to English speakers to fix error mess

[issue3665] Support \u and \U escapes in regexes

2008-09-27 Thread Jeffrey C. Jacobs
Changes by Jeffrey C. Jacobs <[EMAIL PROTECTED]>: -- versions: +Python 2.7, Python 3.1 -Python 3.0 ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue3665] Support \u and \U escapes in regexes

2008-09-27 Thread Jeffrey C. Jacobs
Changes by Jeffrey C. Jacobs <[EMAIL PROTECTED]>: -- nosy: +timehorse ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list ma

[issue3665] Support \u and \U escapes in regexes

2008-08-24 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: These concerns indeed must be handled: On narrow unicode builds, chars > 0x must be converted to surrogates. In ranges, they should raise an error. Additionally, this should at least raise an error too: >>> re.compile("[\U0010]").match

[issue3665] Support \u and \U escapes in regexes

2008-08-24 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: (in the last sentence, I meant UCS2. Sorry) ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3665] Support \u and \U escapes in regexes

2008-08-24 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: - Check that it also works for chars > 0x (even in UCS2 builds, at least when the chars are not part of [character range]) - What does happen with e.g. [\U0001-\U00010001] on an UCS build? -- nosy: +pitrou ___

[issue3665] Support \u and \U escapes in regexes

2008-08-24 Thread Georg Brandl
New submission from Georg Brandl <[EMAIL PROTECTED]>: Since \u and \U aren't interpolated in raw strings anymore, the re module should support those escapes in addition to the \x and octal ones it already does. Attached patch. -- components: Library (Lib) files: re_unicode_escapes.diff