mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
-- use charset bitmaps where appropriate. this gives a 5-10%
speedup for some tests, including the python tokenizer. -- added support for an optional charset anchor to the engine (currently unused by the code generator). -- removed workaround for array module bug.
This commit is contained in:
parent
c13222cdff
commit
3562f11764
5 changed files with 182 additions and 63 deletions
|
@ -16,11 +16,10 @@ import _sre
|
|||
|
||||
from sre_constants import *
|
||||
|
||||
# FIXME: should be 65535, but the arraymodule is still broken
|
||||
MAXREPEAT = 32767
|
||||
MAXREPEAT = 65535
|
||||
|
||||
# FIXME: might change in 2.0 final. but for now, this seems
|
||||
# to be the best way to be compatible with 1.5.2
|
||||
# FIXME: the following might change in 2.0 final. but for now, this
|
||||
# seems to be the best way to be compatible with 1.5.2
|
||||
CHARMASK = 0xff
|
||||
|
||||
SPECIAL_CHARS = ".\\[{()*+?^$|"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue