summaryrefslogtreecommitdiffstats
path: root/Lib/sre_constants.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #13592: Improved the repr for regular expression pattern objects.Serhiy Storchaka2013-11-231-0/+2
| | | | Based on patch by Hugo Lopes Tavares.
* Fix issue #13169: Reimport MAXREPEAT into sre_constants.py.Serhiy Storchaka2013-02-181-0/+2
|
* Issue #13169: The maximal repetition number in a regular expression has beenSerhiy Storchaka2013-02-161-4/+0
| | | | | increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on 64-bit).
* Fix generating of sre_constants.h on Python 3.Serhiy Storchaka2013-01-241-2/+1
|
* #2834: Change re module semantics, so that str and bytes mixing is forbidden,Antoine Pitrou2008-08-191-1/+2
| | | | | and str (unicode) patterns get full unicode matching by default. The re.ASCII flag is also introduced to ask for ASCII matching instead.
* Fix most trivially-findable print statements.Guido van Rossum2007-02-091-1/+1
| | | | | | | | | There's one major and one minor category still unfixed: doctests are the major category (and I hope to be able to augment the refactoring tool to refactor bona fide doctests soon); other code generating print statements in strings is the minor category. (Oh, and I don't know if the compiler package works.)
* PEP 292 classes Template and SafeTemplate are added to the string module.Barry Warsaw2004-08-251-2/+1
| | | | | | | | This patch includes test cases and documentation updates, as well as NEWS file updates. This patch also updates the sre modules so that they don't import the string module, breaking direct circular imports.
* Implemented non-recursive SRE matching.Gustavo Niemeyer2003-10-171-2/+3
|
* Let library modules use the new keyword arguments for list.sort().Raymond Hettinger2003-10-161-1/+1
|
* Fully support 32-bit codes. Enable BIGCHARSET in UCS-4 builds.Martin v. Löwis2003-04-191-1/+1
|
* SF patch #720991 by Gary Herron:Guido van Rossum2003-04-141-1/+3
| | | | | | | A small fix for bug #545855 and Greg Chapman's addition of op code SRE_OP_MIN_REPEAT_ONE for eliminating recursion on simple uses of pattern '*?' on a long string.
* Added docstrings by Neal Norwitz. This closes SF bug #450980.Fred Drake2001-09-041-0/+2
|
* added martin's BIGCHARSET patch to SRE 2.1.1. martin reports 2xFredrik Lundh2001-07-021-2/+3
| | | | speedups for certain unicode character ranges.
* sre 2.1b2 update:Fredrik Lundh2001-03-221-2/+18
| | | | | | - take locale into account for word boundary anchors (#410271) - restored 2.0's *? behaviour (#233283, #408936 and others) - speed up re.sub/re.subn
* - restored 1.5.2 compatibility (sorry, eric)Fredrik Lundh2001-02-181-1/+2
| | | | | - removed __all__ cruft from internal modules (sorry, skip) - don't assume ASCII for string escapes (sorry, per)
* removed __all__ - should probably rename makedict to _makedict unless it isSkip Montanaro2001-02-181-6/+0
| | | | to be exported
* bunch more __all__ listsSkip Montanaro2001-02-151-0/+6
| | | | | | also modified check_all function to suppress all warnings since they aren't relevant to what this test is doing (allows quiet checking of regsub, for instance)
* String method conversion.Eric S. Raymond2001-02-091-2/+1
|
* added "magic" number to the _sre module, to avoid weird errors causedFredrik Lundh2001-01-151-0/+9
| | | | by compiler/engine mismatches
* SRE fixes for 2.1 alpha:Fredrik Lundh2001-01-141-4/+7
| | | | | | | | | | -- added some more docstrings -- fixed typo in scanner class (#125531) -- the multiline flag (?m) should't affect the \Z operator (#127259) -- fixed non-greedy backtracking bug (#123769, #127259) -- added sre.DEBUG flag (currently dumps the parsed pattern structure) -- fixed a couple of glitches in groupdict (the #126587 memory leak had already been fixed by AMK)
* Fixed too ambitious "nothing to repeat" check. Closes bug #114033.Fredrik Lundh2000-10-071-0/+2
|
* final 0.9.8 updates:Fredrik Lundh2000-08-011-1/+2
| | | | | -- added REPEAT_ONE operator -- added ANY_ALL operator (used to represent "(?s).")
* SRE 0.9.8: passes the entire test suiteFredrik Lundh2000-08-011-10/+8
| | | | | | | | | -- reverted REPEAT operator to use "repeat context" strategy (from 0.8.X), but done right this time. -- got rid of backtracking stack; use nested SRE_MATCH calls instead (should probably put it back again in 0.9.9 ;-) -- properly reset state in scanner mode -- don't use aggressive inlining by default
* -- SRE 0.9.6 sync. this includes:Fredrik Lundh2000-07-231-1/+1
| | | | | | | | | | | + added "regs" attribute + fixed "pos" and "endpos" attributes + reset "lastindex" and "lastgroup" in scanner methods + removed (?P#id) syntax; the "lastindex" and "lastgroup" attributes are now always set + removed string module dependencies in sre_parse + better debugging support in sre_parse + various tweaks to build under 1.5.2
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-1/+1
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* - fixed grouping error bugFredrik Lundh2000-07-031-4/+4
| | | | - changed "group" operator to "groupref"
* - actually enabled charset anchors in the engine (still notFredrik Lundh2000-07-021-0/+2
| | | | | | | | | | used by the code generator) - changed max repeat value in engine (to match earlier array fix) - added experimental "which part matched?" mechanism to sre; see http://hem.passagen.se/eff/2000_07_01_bot-archive.htm#416954 or python-dev for details.
* -- use charset bitmaps where appropriate. this gives a 5-10%Fredrik Lundh2000-07-021-7/+20
| | | | | | | | | 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.
* today's SRE update:Fredrik Lundh2000-07-011-1/+1
| | | | | | | | -- changed 1.6 to 2.0 in the file headers -- fixed ISALNUM macro for the unicode locale. this solution isn't perfect, but the best I can do with Python's current unicode database.
* - fixed lookahead assertions (#10, #11, #12)Fredrik Lundh2000-06-301-8/+24
| | | | - untabified sre_constants.py
* - 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.
* - 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-22/+50
|
* Fredrik Lundh: here's the 96.6% version of SREJeremy Hylton2000-06-011-27/+68
|
* Fredrik Lundh: new snapshot. Mostly reindented.Guido van Rossum2000-04-101-1/+1
| | | | | 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-1/+1
| | | | 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/+131
NOTE: THIS IS VERY ROUGH ALPHA CODE!