History log of /external/python/cpython2/Lib/sre.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7492e4260e4f6231f6f30a0f10f514115b9233cb 21-Mar-2007 Žiga Seilnacht <ziga.seilnacht@gmail.com> Bug #1675967: re patterns pickled with older Python versions can
now be unpickled. Will backport.
/external/python/cpython2/Lib/sre.py
f0e2c07a746b726bc40952efde0400378a000c6c 16-Mar-2006 Neal Norwitz <nnorwitz@gmail.com> Spel compatibility write.
/external/python/cpython2/Lib/sre.py
f521de6efcf6532f89dc688e634a7fedac3d5f29 16-Mar-2006 Neal Norwitz <nnorwitz@gmail.com> Add back an sre.py that should be backwards compatible except for the warning.
/external/python/cpython2/Lib/sre.py
94a9c09e109706af64ae8796882baab2af25be2f 16-Mar-2006 Neal Norwitz <nnorwitz@gmail.com> Rename sre.py -> re.py
/external/python/cpython2/Lib/sre.py
ebb7f30111ce72b40081f5db29317fd8b0e23d79 13-Sep-2005 Raymond Hettinger <python@rcn.com> Speed-up escape()
/external/python/cpython2/Lib/sre.py
596ba4d89e139efbac86a3254aa1d3653f1382ee 24-Sep-2004 Raymond Hettinger <python@rcn.com> Granted Noam Raphael's request for minor improvements to the re module and
its documentation.

* Documented that the compiled re methods are supposed to be more full
featured than their simpilified function counterparts.

* Documented the existing start and stop position arguments for the
findall() and finditer() methods of compiled regular expression objects.

* Added an optional flags argument to the re.findall() and re.finditer()
functions. This aligns their API with that for re.search() and
re.match().
/external/python/cpython2/Lib/sre.py
8bee76106e8da9fd6011432d2f60861a94c623db 25-Aug-2004 Barry Warsaw <barry@python.org> PEP 292 classes Template and SafeTemplate are added to the string module.
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.
/external/python/cpython2/Lib/sre.py
43ab0cd174c330d5338c395c1f1aae8a0aaffa2d 07-Aug-2004 Andrew M. Kuchling <amk@amk.ca> [Bug #990792] Mention that repl can be a callable
/external/python/cpython2/Lib/sre.py
0f5bf1ebdd426fb17f92d00b319a55b014021c30 20-Apr-2004 Hye-Shik Chang <hyeshik@gmail.com> SF #926075: Fixed the bug that returns a wrong pattern object for
a string or unicode object in sre.compile() when a different type
pattern with the same value exists.
/external/python/cpython2/Lib/sre.py
74902508dc395014dbdb9c2ed08263202e5d4e30 02-Jul-2003 Just van Rossum <just@letterror.com> Addendum to #764548: restore 2.1 compatibility.
/external/python/cpython2/Lib/sre.py
12723baceab61f8812d68575c962696cc4e77fa1 02-Jul-2003 Just van Rossum <just@letterror.com> Fix and test for bug #764548:
Use isinstance() instead of comparing types directly, to enable
subclasses of str and unicode to be used as patterns.
Blessed by /F.
/external/python/cpython2/Lib/sre.py
0d976551fba362c2dd7fe19bfc97f48e25161b46 14-Oct-2002 Guido van Rossum <guido@python.org> Add finditer to __all__ (when defining it at all).
SF bug 585882. Will forward-port.
/external/python/cpython2/Lib/sre.py
b7747e2a2dee73fd076359f8001b9f0a300cbbf8 28-Oct-2001 Fredrik Lundh <fredrik@pythonware.com> added finditer sanity check
/external/python/cpython2/Lib/sre.py
703ce8122cadd68a4260318f44725398fc3a383c 25-Oct-2001 Fredrik Lundh <fredrik@pythonware.com> (experimental) "finditer" method/function. this works pretty much
like findall, but returns an iterator (which returns match objects)
instead of a list of strings/tuples.
/external/python/cpython2/Lib/sre.py
dac58492aa3bf476fa0b4b586edababfe3aaca53 21-Oct-2001 Fredrik Lundh <fredrik@pythonware.com> fixed character set description in docstring (SRE uses Python
strings, not C strings)

removed USE_PYTHON defines, and related sre.py helpers

skip calling the subx helper if the template is callable.
interestingly enough, this means that

def callback(m):
return literal
result = pattern.sub(callback, string)

is much faster than

result = pattern.sub(literal, string)
/external/python/cpython2/Lib/sre.py
1296a8d77e6701d18090c24853cd098f12ef069a 21-Oct-2001 Fredrik Lundh <fredrik@pythonware.com> sre.Scanner fixes (from Greg Chapman). also added a Scanner sanity
check to the test suite.

added a few missing exception checks in the _sre module
/external/python/cpython2/Lib/sre.py
bec95b9d8825b39cff46a8c645fa0eeb8409854e 21-Oct-2001 Fredrik Lundh <fredrik@pythonware.com> rewrote the pattern.sub and pattern.subn methods in C

removed (conceptually flawed) getliteral helper; the new sub/subn code
uses a faster code path for literal replacement strings, but doesn't
(yet) look for literal patterns.

added STATE_OFFSET macro, and use it to convert state.start/ptr to
char indexes
/external/python/cpython2/Lib/sre.py
397a654791e6bc8b108945e45e7d1393cc6f32d4 18-Oct-2001 Fredrik Lundh <fredrik@pythonware.com> SRE bug #441409:
compile should raise error for non-strings
SRE bug #432570, 448951:
reset group after failed match

also bumped version number to 2.2.0
/external/python/cpython2/Lib/sre.py
59b68656f846973840953220c4780f3558b59fb8 18-Sep-2001 Fredrik Lundh <fredrik@pythonware.com> fixed #449964: sre.sub raises an exception if the template contains a
\g<x> group reference followed by a character escape

(also restructured a few things on the way to fixing #449000)
/external/python/cpython2/Lib/sre.py
21009b9c6fc40b25fcb30ee60d6108f235733e40 18-Sep-2001 Fredrik Lundh <fredrik@pythonware.com> an SRE bugfix a day keeps Guido away...

#462270: sub-tle difference between pre.sub and sre.sub. PRE ignored
an empty match at the previous location, SRE didn't.

also synced with Secret Labs "sreopen" codebase.
/external/python/cpython2/Lib/sre.py
9f5b822fb3aa08d3cf4a89d33c6c69ad1843a661 04-Sep-2001 Fred Drake <fdrake@acm.org> Convert docstring to "raw" string.
/external/python/cpython2/Lib/sre.py
b8f22749853cf79bfbe3709309e67d1a448f4cab 04-Sep-2001 Fred Drake <fdrake@acm.org> Added docstrings by Neal Norwitz. This closes SF bug #450980.
/external/python/cpython2/Lib/sre.py
315cd29ecf694b23715165cda8628e2444371c98 10-Aug-2001 Guido van Rossum <guido@python.org> Disable the sub() optimization until Fredrik has time to look into SF
bug #449000, "re.sub(r'\n', ...) broke". This was Fredrik's
suggestion -- he's on vacation and said he wouldn't be able to work on
this until next week.
/external/python/cpython2/Lib/sre.py
2d96f11d07a13b461589169b1db49d310a6edc0b 08-Jul-2001 Fredrik Lundh <fredrik@pythonware.com> map re.sub() to string.replace(), when possible
/external/python/cpython2/Lib/sre.py
e06cbb8c56d76d5f845c4809a22fcdf99063496c 06-Jul-2001 Fredrik Lundh <fredrik@pythonware.com> bug #436596

re.findall doesn't take a maxsplit argument
/external/python/cpython2/Lib/sre.py
b25e1ad253a4d96aea31a7a3fb78522ea354f43a 22-Mar-2001 Fredrik Lundh <fredrik@pythonware.com> sre 2.1b2 update:

- take locale into account for word boundary anchors (#410271)
- restored 2.0's *? behaviour (#233283, #408936 and others)
- speed up re.sub/re.subn
/external/python/cpython2/Lib/sre.py
f2989b22fff921b3394e1709a07f0119370b6d74 18-Feb-2001 Fredrik Lundh <fredrik@pythonware.com> - restored 1.5.2 compatibility (sorry, eric)
- removed __all__ cruft from internal modules (sorry, skip)
- don't assume ASCII for string escapes (sorry, per)
/external/python/cpython2/Lib/sre.py
0de65807e6bdc5254f5a7e99b2f39adeea6b883b 15-Feb-2001 Skip Montanaro <skip@pobox.com> bunch more __all__ lists
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)
/external/python/cpython2/Lib/sre.py
b08b2d316653bf22d39ad76814b5a0e7dad30c31 09-Feb-2001 Eric S. Raymond <esr@thyrsus.com> String method conversion.
/external/python/cpython2/Lib/sre.py
1c5aa6901fb13f8112ead1786868f0f8ed4c9e2d 16-Jan-2001 Fredrik Lundh <fredrik@pythonware.com> bumped SRE version number to 2.1. cleaned up and added 1.5.2
compatibility patches.
/external/python/cpython2/Lib/sre.py
770617b23e286f1147f9480b5f625e88e7badd50 14-Jan-2001 Fredrik Lundh <fredrik@pythonware.com> SRE fixes for 2.1 alpha:

-- 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)
/external/python/cpython2/Lib/sre.py
5644b7fad1f354f43b3dd4ae890edcade2c0bcbc 21-Sep-2000 Fredrik Lundh <fredrik@pythonware.com> - fixed yet another gcc -pedantic warning
- added experimental "expand" method to match objects
- don't use the buffer interface on unicode strings
/external/python/cpython2/Lib/sre.py
7898c3e6852565046a9b8b063d35d66777bf5176 07-Aug-2000 Fredrik Lundh <fredrik@pythonware.com> -- reset marks if repeat_one tail doesn't match
(this should fix Sjoerd's xmllib problem)
-- added skip field to INFO header
-- changed compiler to generate charset INFO header
-- changed trace messages to support post-mortem analysis
/external/python/cpython2/Lib/sre.py
e186983842f0b27606b141010513fa8e3d0cc5db 02-Aug-2000 Fredrik Lundh <fredrik@pythonware.com> final 0.9.8 updates:

-- added REPEAT_ONE operator
-- added ANY_ALL operator (used to represent "(?s).")
/external/python/cpython2/Lib/sre.py
29c4ba9ada44d62988c62c85c8046985f10a1c85 01-Aug-2000 Fredrik Lundh <fredrik@pythonware.com> SRE 0.9.8: passes the entire test suite

-- 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
/external/python/cpython2/Lib/sre.py
8a3ebf8ca87a7d2989148d7c218974ab4235ca5d 23-Jul-2000 Fredrik Lundh <fredrik@pythonware.com> -- SRE 0.9.6 sync. this includes:

+ 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
/external/python/cpython2/Lib/sre.py
019bcb598d9b4890a105a0476b9b4e5cb9f14da7 03-Jul-2000 Fredrik Lundh <fredrik@pythonware.com> - changed sre.Scanner to use lastindex instead of index.
/external/python/cpython2/Lib/sre.py
7cafe4d7e466996d5fc32e871fe834e0e0c94282 02-Jul-2000 Fredrik Lundh <fredrik@pythonware.com> - actually enabled charset anchors in the engine (still not
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.
/external/python/cpython2/Lib/sre.py
22d254652099e3a1f157543c7b1b37e3263e65c7 01-Jul-2000 Fredrik Lundh <fredrik@pythonware.com> today's SRE update:

-- 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.
/external/python/cpython2/Lib/sre.py
0640e1161f37fd3415e9efdbde1e293efb98978c 30-Jun-2000 Fredrik Lundh <fredrik@pythonware.com> the mad patcher strikes again:

-- 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)
/external/python/cpython2/Lib/sre.py
90a07913229ada1bb3011cfa08a1e56bca31daaf 30-Jun-2000 Fredrik Lundh <fredrik@pythonware.com> - pedantic: make sure "python -t" doesn't complain...
/external/python/cpython2/Lib/sre.py
df02d0b3f0f438e6a773528010cc360d01b8f393 30-Jun-2000 Fredrik Lundh <fredrik@pythonware.com> - fixed default value handling in group/groupdict

- added test suite
/external/python/cpython2/Lib/sre.py
01016fe972a90eb57bafeb1f4a73f334c201c3c2 30-Jun-2000 Fredrik Lundh <fredrik@pythonware.com> - fixed split behaviour on empty matches

- fixed compiler problems when using locale/unicode flags

- fixed group/octal code parsing in sub/subn templates
/external/python/cpython2/Lib/sre.py
8094611eb8abe9f9d1e1498f36324eebabaa0a09 29-Jun-2000 Fredrik Lundh <fredrik@pythonware.com> - fixed another split problem
(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.
/external/python/cpython2/Lib/sre.py
be2211e9401a0be96915c473ef99041beb5a4992 29-Jun-2000 Fredrik Lundh <fredrik@pythonware.com> - fixed split
(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
/external/python/cpython2/Lib/sre.py
436c3d58a2570f3b599e59b4071f944f774ec441 29-Jun-2000 Fredrik Lundh <fredrik@pythonware.com> towards 1.6b1
/external/python/cpython2/Lib/sre.py
e8d52af54bb90459d941ecdd683bc8416bc47b48 18-Jun-2000 Andrew M. Kuchling <amk@amk.ca> Fix bug when the replacement template is a callable object
/external/python/cpython2/Lib/sre.py
b1aa19515ffdb84c6633ee0344196fd8bd50ade0 01-Jun-2000 Jeremy Hylton <jeremy@alum.mit.edu> Fredrik Lundh: here's the 96.6% version of SRE
/external/python/cpython2/Lib/sre.py
1b6aecb08c5496402189f455c4f07654902a8a51 02-May-2000 Guido van Rossum <guido@python.org> I know this is only a temporary stop-gap measure, but the match() and
search() functions didn't even work because _fixflags() isn't
idempotent. I'm adding another stop-gap measure so that you can at
least use sre.search() and sre.match() with a zero flags arg.
/external/python/cpython2/Lib/sre.py
7627c0de6968471996ce05aab200115d56efa1d5 31-Mar-2000 Guido van Rossum <guido@python.org> Added Fredrik Lundh's sre module and its supporting cast.

NOTE: THIS IS VERY ROUGH ALPHA CODE!
/external/python/cpython2/Lib/sre.py