Message142059
| Author |
ezio.melotti |
| Recipients |
Arfrever, ezio.melotti, jkloth, mrabarnett, pitrou, r.david.murray, tchrist, terry.reedy |
| Date |
2011年08月14日.16:00:34 |
| SpamBayes Score |
7.3557636e-08 |
| Marked as misclassified |
No |
| Message-id |
<1313337636.05.0.20997349067.issue12749@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
On a wide 2.7 and 3.3 all the 3 tests pass.
On a narrow 3.2 I get
match 1 passed
Traceback (most recent call last):
File "/home/wolf/dev/py/3.2/Lib/functools.py", line 176, in wrapper
result = cache[key]
KeyError: (<class 'str'>, '[A-Z]', 32)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "bigrange.py", line 16, in <module>
if re.search("[A-Z]", "C", flags):
File "/home/wolf/dev/py/3.2/Lib/re.py", line 158, in search
return _compile(pattern, flags).search(string)
File "/home/wolf/dev/py/3.2/Lib/re.py", line 255, in _compile
return _compile_typed(type(pattern), pattern, flags)
File "/home/wolf/dev/py/3.2/Lib/functools.py", line 180, in wrapper
result = user_function(*args, **kwds)
File "/home/wolf/dev/py/3.2/Lib/re.py", line 267, in _compile_typed
return sre_compile.compile(pattern, flags)
File "/home/wolf/dev/py/3.2/Lib/sre_compile.py", line 491, in compile
p = sre_parse.parse(p, flags)
File "/home/wolf/dev/py/3.2/Lib/sre_parse.py", line 692, in parse
p = _parse_sub(source, pattern, 0)
File "/home/wolf/dev/py/3.2/Lib/sre_parse.py", line 315, in _parse_sub
itemsappend(_parse(source, state))
File "/home/wolf/dev/py/3.2/Lib/sre_parse.py", line 461, in _parse
raise error("bad character range")
sre_constants.error: bad character range |
|