summaryrefslogtreecommitdiffstats
path: root/Lib/sre_compile.py
Commit message (Collapse)AuthorAgeFilesLines
* the mad patcher strikes again:Fredrik Lundh2000-06-301-4/+4
| | | | | | | | | | | | | | | -- added pickling support (only works if sre is imported) -- fixed wordsize problems in engine (instead of casting literals down to the character size, cast characters up to the literal size (same as the code word size). this prevents false hits when you're matching a unicode pattern against an 8-bit string. (unfortunately, this broke another test, but I think the test should be changed in this case; more on that on python-dev) -- added sre.purge function (unofficial, clears the cache)
* - fixed lookahead assertions (#10, #11, #12)Fredrik Lundh2000-06-301-50/+50
| | | | - untabified sre_constants.py
* - pedantic: make sure "python -t" doesn't complain...Fredrik Lundh2000-06-301-153/+153
|
* - fixed split behaviour on empty matchesFredrik Lundh2000-06-301-4/+4
| | | | | | - fixed compiler problems when using locale/unicode flags - fixed group/octal code parsing in sub/subn templates
* still trying to figure out how to fix the remainingFredrik Lundh2000-06-291-1/+56
| | | | | | | | | | | | | | | | | | | group reset problem. in the meantime, I added some optimizations: - added "inline" directive to LOCAL (this assumes that AC_C_INLINE does what it's supposed to do). to compile SRE on a non-unix platform that doesn't support inline, you have to add a "#define inline" somewhere... - added code to generate a SRE_OP_INFO primitive - added code to do fast prefix search (enabled by the USE_FAST_SEARCH define; default is on, in this release)
* - fixed another split problemFredrik Lundh2000-06-291-1/+0
| | | | | | | | | (those semantics are weird...) - got rid of $Id$'s (for the moment, at least). in other words, there should be no more "empty" checkins. - internal: some minor cleanups.
* - fixed splitFredrik Lundh2000-06-291-93/+66
| | | | | | | | | | | | | | (test_sre still complains about split, but that's caused by the group reset bug, not split itself) - added more mark slots (should be dynamically allocated, but 100 is better than 32. and checking for the upper limit is better than overwriting the memory ;-) - internal: renamed the cursor helper class - internal: removed some bloat from sre_compile
* - removed "alpha only" licensing restrictionFredrik Lundh2000-06-291-3/+0
| | | | | - removed some hacks that worked around 1.6 alpha bugs - removed bogus test code from sre_parse
* towards 1.6b1Fredrik Lundh2000-06-291-27/+39
|
* Fredrik Lundh: here's the 96.6% version of SREJeremy Hylton2000-06-011-64/+70
|
* Fredrik Lundh: new snapshot. Mostly reindented.Guido van Rossum2000-04-101-125/+125
| | | | | This one should work with unicode expressions, and compile a bit more silently.
* This patch looks large, but it just deletes the ^M characters andAndrew M. Kuchling2000-04-021-124/+124
| | | | untabifies the files. No actual code changes were made.
* Added Fredrik Lundh's sre module and its supporting cast.Guido van Rossum2000-03-311-0/+187
NOTE: THIS IS VERY ROUGH ALPHA CODE!