Unicode, regular expressions and PyPy
问题 I wrote a program to add (limited) unicode support to Python regexes, and while it's working fine on CPython 2.5.2 it's not working on PyPy ( 1.5.0-alpha0 1.8.0, implementing Python 2.7.1 2.7.2), both running on Windows XP ( Edit: as seen in the comments, @dbaupp could run it fine on Linux). I have no idea why, but I suspect it has something to do with my uses of u" and ur" . The full source is here, and the relevant bits are: # -*- coding:utf-8 -*- import re # Regexps to match characters in