[Python-bugs-list] [ python-Bugs-612074 ] Cannot compile escaped unicode character

SourceForge.net noreply@sourceforge.net
Wed, 05 Feb 2003 11:28:32 -0800


Bugs item #612074, was opened at 2002-09-20 03:23
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=612074&group_id=5470

Category: Regular Expressions
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nathan L Miles (nathan22)
Assigned to: Fredrik Lundh (effbot)
Summary: Cannot compile escaped unicode character

Initial Comment:
The following RE fails to compile on Python 2.2/
Windows XP.

I am trying to work around this by writing my own 
version of .escape which does not escape code points > 
127.


import re

a = unichr(0x2039)
b = u"["+re.escape(a)+u"]"
re.compile(b)


----------------------------------------------------------------------

Comment By: Greg Chapman (glchapman)
Date: 2003-02-05 10:28

Message:
Logged In: YES 
user_id=86307

patch posted: http://www.python.org/sf/681152


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=612074&group_id=5470