Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-30215: Make re.compile() locale agnostic. (#1361) | Serhiy Storchaka | 2017-05-05 | 1 | -10/+2 |
| | | | | | | Compiled regular expression objects with the re.LOCALE flag no longer depend on the locale at compile time. Only the locale at matching time affects the result of matching. | ||||
* | bpo-29995: re.escape() now escapes only special characters. (#1007) | Serhiy Storchaka | 2017-04-13 | 1 | -27/+9 |
| | |||||
* | Issue #28637: Reapply changeset 223731925d06 | Victor Stinner | 2016-11-14 | 1 | -12/+21 |
| | | | | | | | "issue28082: use IntFlag for re constants" by Ethan Furman. The re module is not more used in the site module and so adding "import enum" to re.py doesn't impact python_startup benchmark anymore. | ||||
* | Issue #28637: Revert issue #28082, don't import enum in re | Victor Stinner | 2016-11-07 | 1 | -21/+12 |
| | | | | | | Importing the enum module in the re module slows down Python startup by 34% when Python is run from a virtual environment, or more generally when the re module is imported at startup but not the enum module. | ||||
* | Issue #28193: Use lru_cache in the re module. | Raymond Hettinger | 2016-09-19 | 1 | -11/+4 |
| | |||||
* | issue28082: better name for Flag | Ethan Furman | 2016-09-11 | 1 | -2/+2 |
| | |||||
* | issue28082: use IntFlag for re constants | Ethan Furman | 2016-09-11 | 1 | -12/+21 |
| | |||||
* | Issue #433028: Added support of modifier spans in regular expressions. | Serhiy Storchaka | 2016-09-09 | 1 | -1/+1 |
| | |||||
* | Removed unused imports. | Serhiy Storchaka | 2016-04-24 | 1 | -1/+0 |
| | |||||
* | Issue #22364: Improved some re error messages using regex for hints. | Serhiy Storchaka | 2015-03-25 | 1 | -1/+1 |
| | |||||
* | Issues #814253, #9179: Group references and conditional group references now | Serhiy Storchaka | 2015-02-21 | 1 | -2/+3 |
| | | | | work in lookbehind assertions in regular expressions. | ||||
* | merge 3.4 (#9179) | Benjamin Peterson | 2014-11-30 | 1 | -3/+2 |
|\ | |||||
| * | backout 9fcf4008b626 (#9179) for further consideration | Benjamin Peterson | 2014-11-30 | 1 | -3/+2 |
| | | |||||
* | | Minor code clean up and improvements in the re module. | Serhiy Storchaka | 2014-11-11 | 1 | -1/+1 |
| | | |||||
* | | Issues #814253, #9179: Group references and conditional group references now | Serhiy Storchaka | 2014-11-07 | 1 | -2/+3 |
|\ \ | |/ | | | | | work in lookbehind assertions in regular expressions. | ||||
| * | Issues #814253, #9179: Group references and conditional group references now | Serhiy Storchaka | 2014-11-07 | 1 | -2/+3 |
| | | | | | | | | work in lookbehind assertions in regular expressions. | ||||
* | | Fixed compile error in issue #22410. The _locale module is optional. | Serhiy Storchaka | 2014-10-30 | 1 | -1/+6 |
|\ \ | |/ | |||||
| * | Fixed compile error in issue #22410. The _locale module is optional. | Serhiy Storchaka | 2014-10-30 | 1 | -1/+6 |
| | | |||||
* | | Issue #22410: Module level functions in the re module now cache compiled | Serhiy Storchaka | 2014-10-30 | 1 | -2/+9 |
|\ \ | |/ | | | | | locale-dependent regular expressions taking into account the locale. | ||||
| * | Issue #22410: Module level functions in the re module now cache compiled | Serhiy Storchaka | 2014-10-30 | 1 | -2/+9 |
| | | | | | | | | locale-dependent regular expressions taking into account the locale. | ||||
* | | Issue #22510: Get rid of little overhead of testing re.DEBUG flag. | Serhiy Storchaka | 2014-09-29 | 1 | -7/+5 |
| | | |||||
* | | Removed a code for suport Python version <2.2. | Serhiy Storchaka | 2014-09-28 | 1 | -11/+12 |
|/ | |||||
* | Issue #20426: When passing the re.DEBUG flag, re.compile() displays the ↵ | Antoine Pitrou | 2014-02-03 | 1 | -7/+10 |
|\ | | | | | | | debug output every time it is called, regardless of the compilation cache. | ||||
| * | Issue #20426: When passing the re.DEBUG flag, re.compile() displays the ↵ | Antoine Pitrou | 2014-02-03 | 1 | -7/+10 |
| | | | | | | | | debug output every time it is called, regardless of the compilation cache. | ||||
* | | Issue #16203: Add re.fullmatch() function and regex.fullmatch() method, | Serhiy Storchaka | 2013-11-23 | 1 | -11/+17 |
| | | | | | | | | | | | | which anchor the pattern at both ends of the string to match. Original patch by Matthew Barnett. | ||||
* | | Back out accidentally pushed changeset b51218966201. | Georg Brandl | 2013-10-13 | 1 | -17/+11 |
| | | |||||
* | | Add re.fullmatch() function and regex.fullmatch() method, which anchor the | Georg Brandl | 2013-10-13 | 1 | -11/+17 |
| | | | | | | | | | | | | | | pattern at both ends of the string to match. Patch by Matthew Barnett. Closes #16203. | ||||
* | | Remove import functools from re module. The re module imports functools but ↵ | Christian Heimes | 2013-10-13 | 1 | -1/+0 |
|/ | | | | never uses it. | ||||
* | Issue #16564: Fixed a performance regression relative to Python 3.1 in the | Serhiy Storchaka | 2013-03-16 | 1 | -6/+24 |
|\ | | | | | | | caching of compiled regular expressions. | ||||
| * | Issue #16564: Fixed a performance regression relative to Python 3.1 in the | Serhiy Storchaka | 2013-03-16 | 1 | -9/+25 |
| | | | | | | | | caching of compiled regular expressions. | ||||
* | | Set cache sizes to a power-of-two | Raymond Hettinger | 2013-02-17 | 1 | -2/+2 |
| | | |||||
* | | #14236: merge with 3.2. | Ezio Melotti | 2012-04-29 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #14236: fix docs for \S. | Ezio Melotti | 2012-04-29 | 1 | -1/+1 |
| | | |||||
* | | #14236: merge with 3.2. | Ezio Melotti | 2012-04-29 | 1 | -1/+4 |
|\ \ | |/ | |||||
| * | #14236: mention Unicode whitespace in \s documentation. | Ezio Melotti | 2012-04-29 | 1 | -1/+4 |
| | | |||||
* | | Merge with 3.2. | Georg Brandl | 2012-03-10 | 1 | -3/+8 |
|\ \ | |/ | |||||
| * | Closes #14244: add info about capturing groups and maxsplit to the docstring ↵ | Georg Brandl | 2012-03-10 | 1 | -3/+8 |
| | | | | | | | | of re.split(). | ||||
* | | Merge 3.2 | Florent Xicluna | 2011-10-28 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Closes #13258: Use callable() built-in in the standard library. | Florent Xicluna | 2011-10-28 | 1 | -1/+1 |
| | | |||||
* | | Issue 13227: Option to make the lru_cache() type specific (suggested by ↵ | Raymond Hettinger | 2011-10-20 | 1 | -5/+2 |
| | | | | | | | | Andrew Koenig). | ||||
* | | #2650: re.escape() no longer escapes the "_". | Ezio Melotti | 2011-04-10 | 1 | -3/+5 |
|/ | |||||
* | #2650: Merge with 3.1. | Ezio Melotti | 2011-03-25 | 1 | -2/+1 |
|\ | |||||
| * | #2650: Refactor re.escape to use enumerate(). | Ezio Melotti | 2011-03-25 | 1 | -2/+1 |
| | | |||||
* | | Adopt more descriptive attribute names as suggested on python-dev. | Raymond Hettinger | 2010-09-04 | 1 | -2/+2 |
| | | |||||
* | | Clean-up the cache patch for the re module. | Raymond Hettinger | 2010-08-14 | 1 | -48/+7 |
| | | |||||
* | | Reapply r83877. | Antoine Pitrou | 2010-08-13 | 1 | -20/+12 |
| | | |||||
* | | Revert r83877 in order to fix compilation | Antoine Pitrou | 2010-08-09 | 1 | -12/+20 |
| | | |||||
* | | reapply the revert made in r83875 | Senthil Kumaran | 2010-08-09 | 1 | -20/+12 |
| | | | | | | | | | | | | | | | | | | 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 Hettinger | 2010-08-09 | 1 | -12/+20 |
| | | | | | | | | | | | | | | | | | | | | | | 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 the | Raymond Hettinger | 2010-08-09 | 1 | -20/+12 |
| | | | | | | | | random flushing cache in the re module. |