summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_re.py
Commit message (Collapse)AuthorAgeFilesLines
* #17341: Include name in re error message about invalid group name.R David Murray2013-04-141-0/+11
| | | | Patch by Jason Michalski.
* Closes #14462: allow any valid Python identifier in sre group names, as ↵Georg Brandl2013-04-141-0/+8
| | | | documented.
* #12749: add a test for non-BMP ranges in character classes.Ezio Melotti2013-02-231-0/+1
|
* Issue #9669: Protect re against infinite loops on zero-width matching inSerhiy Storchaka2013-02-161-0/+9
|\ | | | | | | non-greedy repeat. Patch by Matthew Barnett.
| * Issue #9669: Protect re against infinite loops on zero-width matching inSerhiy Storchaka2013-02-161-0/+9
| | | | | | | | non-greedy repeat. Patch by Matthew Barnett.
* | Issue #13169: The maximal repetition number in a regular expression has beenSerhiy Storchaka2013-02-161-1/+33
|\ \ | |/ | | | | | | increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on 64-bit).
| * Issue #13169: The maximal repetition number in a regular expression has beenSerhiy Storchaka2013-02-161-1/+33
| | | | | | | | | | increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on 64-bit).
* | #13899: merge with 3.2.Ezio Melotti2013-01-111-0/+6
|\ \ | |/
| * #13899: \A, \Z, and \B now correctly match the A, Z, and B literals when ↵Ezio Melotti2013-01-111-0/+6
| | | | | | | | used inside character classes (e.g. [A]). Patch by Matthew Barnett.
* | Issue #16688: Fix backreferences did make case-insensitive regex fail on ↵Serhiy Storchaka2012-12-291-0/+5
| | | | | | | | | | | | non-ASCII strings. Patch by Matthew Barnett.
* | Fix test splitting in previous commit.Antoine Pitrou2012-12-031-4/+2
|\ \ | |/
| * Fix test splitting in previous commit.Antoine Pitrou2012-12-031-4/+2
| |
* | Split the bigmem re test in two separate tests with different memory ↵Antoine Pitrou2012-12-031-2/+9
|\ \ | |/ | | | | requirements.
| * Split the bigmem re test in two separate tests with different memory ↵Antoine Pitrou2012-12-031-2/+12
| | | | | | | | requirements.
* | Issue #10182: The re module doesn't truncate indices to 32 bits anymore.Antoine Pitrou2012-12-021-1/+16
|\ \ | |/ | | | | Patch by Serhiy Storchaka.
| * Issue #10182: The re module doesn't truncate indices to 32 bits anymore.Antoine Pitrou2012-12-021-1/+16
| | | | | | | | Patch by Serhiy Storchaka.
* | Merge test from issue #1160.Antoine Pitrou2012-11-201-0/+6
|\ \ | |/
| * Issue #1160: Fix compiling large regular expressions on UCS2 builds.Antoine Pitrou2012-11-201-0/+6
| | | | | | | | Patch by Serhiy Storchaka.
* | #12759: merge with 3.2.Ezio Melotti2012-11-031-0/+20
|\ \ | |/
| * #12759: sre_parse now raises a proper error when the name of the group is ↵Ezio Melotti2012-11-031-0/+20
| | | | | | | | missing. Initial patch by Serhiy Storchaka.
* | Issue #3665: \u and \U escapes are now supported in unicode regular expressions.Antoine Pitrou2012-06-231-15/+83
| | | | | | | | Patch by Serhiy Storchaka.
* | closes #14259 re.finditer() now takes keyword arguments: pos, endpos.Sean Reifschneider2012-03-131-0/+20
| | | | | | | | | | Contrary to the documentation, finditer() did not take pos and endpos keyword arguments.
* | #14179: merge with 3.2.Ezio Melotti2012-03-121-0/+10
|\ \ | |/
| * #14179: add tests for re.compile. Patch by Florian Mladitsch.Ezio Melotti2012-03-121-0/+10
| |
* | merge 3.2 (#14212)Benjamin Peterson2012-03-071-1/+13
|\ \ | |/
| * keep the buffer object around while we're using it (closes #14212)Benjamin Peterson2012-03-071-1/+13
| |
* | #10713: merge with 3.2.Ezio Melotti2012-02-291-0/+26
|\ \ | |/
| * #10713: Improve documentation for \b and \B and add a few tests. Initial ↵Ezio Melotti2012-02-291-0/+26
| | | | | | | | patch and tests by Martin Pool.
* | Implement PEP 393.Martin v. Löwis2011-09-281-0/+7
| |
* | #2650: re.escape() no longer escapes the "_".Ezio Melotti2011-04-101-2/+2
|/
* #2650: Merge with 3.1.Ezio Melotti2011-03-251-22/+55
|\
| * #2650: Add tests with non-ascii chars for re.escape.Ezio Melotti2011-03-251-0/+16
| |
| * #2650: Refactor the tests for re.escape.Ezio Melotti2011-03-251-22/+40
| |
* | #11515: Merge with 3.1.Ezio Melotti2011-03-151-1/+1
|\ \ | |/
| * #11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-151-1/+1
| |
| * Merged revisions 78729 via svnmerge fromEzio Melotti2010-03-061-0/+18
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r78729 | ezio.melotti | 2010-03-06 17:24:08 +0200 (Sat, 06 Mar 2010) | 1 line #6509: fix re.sub to work properly when the pattern, the string, and the replacement were all bytes. Patch by Antoine Pitrou. ........
| * Merged revisions 78664 via svnmerge fromVictor Stinner2010-03-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r78664 | victor.stinner | 2010-03-04 22:59:53 +0100 (jeu., 04 mars 2010) | 3 lines Issue #3299: replace PyObject_DEL() by Py_DECREF() in _sre module to fix a crash in pydebug mode. ........
| * Merged revisions 77708 via svnmerge fromEzio Melotti2010-01-231-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r77708 | ezio.melotti | 2010-01-23 12:49:39 +0200 (Sat, 23 Jan 2010) | 9 lines Merged revisions 77706 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77706 | ezio.melotti | 2010-01-23 12:43:05 +0200 (Sat, 23 Jan 2010) | 1 line Increased the overflow value on test_dealloc to make sure that it is big enough even for wide builds. ........ ................
| * Merged revisions 77501 via svnmerge fromAntoine Pitrou2010-01-141-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r77501 | antoine.pitrou | 2010-01-14 18:34:48 +0100 (jeu., 14 janv. 2010) | 10 lines Merged revisions 77499 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r77499 | antoine.pitrou | 2010-01-14 18:25:24 +0100 (jeu., 14 janv. 2010) | 4 lines Issue #3299: Fix possible crash in the _sre module when given bad argument values in debug mode. Patch by Victor Stinner. ........ ................
| * Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-131-1/+1
| | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
| * Merged revisions 74118 via svnmerge fromR. David Murray2009-07-211-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r74118 | r.david.murray | 2009-07-20 13:34:54 -0400 (Mon, 20 Jul 2009) | 5 lines Remove apparently unneeded and un-cleaned-up munging of sys.path from test_re. Tests pass on my machine without it, and I can't see any obvious place in the tests that would need it. ........
* | Reapply r83877.Antoine Pitrou2010-08-131-62/+0
| |
* | Revert r83877 in order to fix compilationAntoine Pitrou2010-08-091-0/+62
| |
* | reapply the revert made in r83875Senthil Kumaran2010-08-091-62/+0
| | | | | | | | | | | | | | | | | | Now the _collections is statically built, the build dependencies are in proper order and build works fine. Commit Log from r83874: Issue 9396. Apply functools.lru_cache in the place of the random flushing cache in the re module.
* | Revert 83784 adding functools.lru_cache() to the re module.Raymond Hettinger2010-08-091-0/+62
| | | | | | | | | | | | | | | | | | | | | | The problem is that the re module is imported by sysconfig and re needs functools which uses collections.OrderedDict() but the _collectionsmodule.c code is not yet constructed at this point in the build. The likely best solution will be to include _collections as part of the static build before the rest of the boot-strapping.
* | Issue 9396. Apply functools.lru_cache in the place of theRaymond Hettinger2010-08-091-62/+0
| | | | | | | | random flushing cache in the re module.
* | The default size of the re module's compiled regular expression cache hasGregory P. Smith2010-07-271-0/+63
| | | | | | | | | | | | | | | | been increased from 100 to 500 and the cache replacement policy has changed from simply clearing the entire cache on overflow to randomly forgetting 20% of the existing cached compiled regular expressions. This is a performance win for applications that use a lot of regular expressions and limits the impact of the performance hit anytime the cache is exceeded.
* | Merged revisions 78093 via svnmerge fromGeorg Brandl2010-03-141-2/+2
| | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78093 | georg.brandl | 2010-02-07 18:03:15 +0100 (So, 07 Feb 2010) | 1 line Remove unused imports in test modules. ........
* | #6509: fix re.sub to work properly when the pattern, the string, and the ↵Ezio Melotti2010-03-061-0/+18
| | | | | | | | replacement were all bytes. Patch by Antoine Pitrou.
* | Issue #3299: replace PyObject_DEL() by Py_DECREF() in _sre module to fix aVictor Stinner2010-03-041-0/+1
| | | | | | | | crash in pydebug mode.