Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove unused imports. | Serhiy Storchaka | 2016-12-16 | 1 | -3/+0 |
| | |||||
* | Issue #28765: _sre.compile() now checks the type of groupindex and indexgroup | Victor Stinner | 2016-11-22 | 1 | -1/+1 |
| | | | | | | groupindex must a dictionary and indexgroup must be a tuple. Previously, indexgroup was a list. Use a tuple to reduce the memory usage. | ||||
* | Issue #28727: Optimize pattern_richcompare() for a==a | Victor Stinner | 2016-11-22 | 1 | -0/+4 |
| | | | | A pattern is equal to itself. | ||||
* | Implement rich comparison for _sre.SRE_Pattern | Victor Stinner | 2016-11-21 | 1 | -2/+45 |
| | | | | | | | Issue #28727: Regular expression patterns, _sre.SRE_Pattern objects created by re.compile(), become comparable (only x==y and x!=y operators). This change should fix the issue #18383: don't duplicate warning filters when the warnings module is reloaded (thing usually only done in unit tests). | ||||
* | Issue #28082: Add basic unit tests on re enums | Victor Stinner | 2016-11-14 | 1 | -0/+6 |
| | |||||
* | Issue #25953: re.sub() now raises an error for invalid numerical group | Serhiy Storchaka | 2016-10-23 | 1 | -21/+22 |
| | | | | | | | reference in replacement template even if the pattern is not found in the string. Error message for invalid group reference now includes the group index and the position of the reference. Based on patch by SilentGhost. | ||||
* | Issue #11957: Restored re tests for passing count and maxsplit as positional | Serhiy Storchaka | 2016-09-25 | 1 | -0/+5 |
|\ | | | | | | | arguments. | ||||
| * | Issue #11957: Restored re tests for passing count and maxsplit as positional | Serhiy Storchaka | 2016-09-25 | 1 | -0/+5 |
| | | | | | | | | arguments. | ||||
| * | Backported tests for issue #28070. | Serhiy Storchaka | 2016-09-10 | 1 | -0/+3 |
| | | |||||
* | | Issue #22493: Warning message emitted by using inline flags in the middle of | Serhiy Storchaka | 2016-09-16 | 1 | -2/+15 |
| | | | | | | | | | | regular expression now contains a (truncated) regex pattern. Patch by Tim Graham. | ||||
* | | Issue 24454: Improve the usability of the re match object named group API | Eric V. Smith | 2016-09-11 | 1 | -0/+44 |
| | | |||||
* | | Issue #22493: Inline flags now should be used only at the start of the | Serhiy Storchaka | 2016-09-11 | 1 | -0/+3 |
| | | | | | | | | | | regular expression. Deprecation warning is emitted if uses them in the middle of the regular expression. | ||||
* | | Issue #28070: Fixed parsing inline verbose flag in regular expressions. | Serhiy Storchaka | 2016-09-10 | 1 | -0/+3 |
| | | |||||
* | | Issue #433028: Added support of modifier spans in regular expressions. | Serhiy Storchaka | 2016-09-09 | 1 | -4/+36 |
| | | |||||
* | | #27364: fix "incorrect" uses of escape character in the stdlib. | R David Murray | 2016-09-08 | 1 | -100/+100 |
| | | | | | | | | | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter. | ||||
* | | Issue #27177: Match objects in the re module now support index-like objects | Serhiy Storchaka | 2016-06-18 | 1 | -7/+21 |
| | | | | | | | | as group indices. Based on patches by Jeroen Demeyer and Xiang Zhang. | ||||
* | | Issue #27030: Unknown escapes consisting of ``'\'`` and ASCII letter in | Serhiy Storchaka | 2016-06-11 | 1 | -28/+13 |
|/ | | | | regular expressions now are errors. | ||||
* | Issue #24580: Symbolic group references to open group in re patterns now are | Serhiy Storchaka | 2015-07-18 | 1 | -0/+2 |
| | | | | explicitly forbidden as well as numeric group references. | ||||
* | Issue #14260: The groupindex attribute of regular expression pattern object | Serhiy Storchaka | 2015-03-29 | 1 | -0/+8 |
| | | | | now is non-modifiable mapping. | ||||
* | Issue #22364: Improved some re error messages using regex for hints. | Serhiy Storchaka | 2015-03-25 | 1 | -74/+179 |
| | |||||
* | Issue #23622: Unknown escapes in regular expressions that consist of ``'\'`` | Serhiy Storchaka | 2015-03-24 | 1 | -13/+30 |
| | | | | | and ASCII letter now raise a deprecation warning and will be forbidden in Python 3.6. | ||||
* | Issues #814253, #9179: Group references and conditional group references now | Serhiy Storchaka | 2015-02-21 | 1 | -1/+41 |
| | | | | work in lookbehind assertions in regular expressions. | ||||
* | Issue #22818: Splitting on a pattern that could match an empty string now | Serhiy Storchaka | 2015-02-03 | 1 | -9/+30 |
| | | | | | raises a warning. Patterns that can only match empty strings are now rejected. | ||||
* | Issue #21032: Deprecated the use of re.LOCALE flag with str patterns or | Serhiy Storchaka | 2014-12-01 | 1 | -16/+66 |
| | | | | re.ASCII. It was newer worked. | ||||
* | Issue #22838: All test_re tests now work with unittest test discovery. | Serhiy Storchaka | 2014-12-01 | 1 | -83/+63 |
|\ | |||||
| * | Issue #22838: All test_re tests now work with unittest test discovery. | Serhiy Storchaka | 2014-12-01 | 1 | -83/+63 |
| | | |||||
* | | merge 3.4 (#9179) | Benjamin Peterson | 2014-11-30 | 1 | -37/+1 |
|\ \ | |/ | |||||
| * | backout 9fcf4008b626 (#9179) for further consideration | Benjamin Peterson | 2014-11-30 | 1 | -37/+1 |
| | | |||||
* | | Minor code clean up and improvements in the re module. | Serhiy Storchaka | 2014-11-11 | 1 | -2/+2 |
| | | |||||
* | | Fixed AttributeError when the regular expression starts from illegal escape. | Serhiy Storchaka | 2014-11-10 | 1 | -0/+14 |
| | | |||||
* | | Issue #22578: Added attributes to the re.error class. | Serhiy Storchaka | 2014-11-10 | 1 | -0/+36 |
| | | |||||
* | | Issue #12728: Different Unicode characters having the same uppercase but | Serhiy Storchaka | 2014-11-10 | 1 | -0/+51 |
|\ \ | |/ | | | | | different lowercase are now matched in case-insensitive regular expressions. | ||||
| * | Issue #12728: Different Unicode characters having the same uppercase but | Serhiy Storchaka | 2014-11-10 | 1 | -0/+51 |
| | | | | | | | | different lowercase are now matched in case-insensitive regular expressions. | ||||
* | | Issue #22434: Constants in sre_constants are now named constants (enum-like). | Serhiy Storchaka | 2014-11-09 | 1 | -16/+16 |
| | | |||||
* | | Issues #814253, #9179: Group references and conditional group references now | Serhiy Storchaka | 2014-11-07 | 1 | -1/+37 |
|\ \ | |/ | | | | | work in lookbehind assertions in regular expressions. | ||||
| * | Issues #814253, #9179: Group references and conditional group references now | Serhiy Storchaka | 2014-11-07 | 1 | -1/+37 |
| | | | | | | | | work in lookbehind assertions in regular expressions. | ||||
| * | Issue #17381: Fixed handling of case-insensitive ranges in regular expressions. | Serhiy Storchaka | 2014-10-31 | 1 | -0/+19 |
| | | |||||
* | | Issue #17381: Fixed handling of case-insensitive ranges in regular expressions. | Serhiy Storchaka | 2014-10-31 | 1 | -0/+19 |
| | | | | | | | | Added new opcode RANGE_IGNORE. | ||||
* | | Issue #22410: Module level functions in the re module now cache compiled | Serhiy Storchaka | 2014-10-30 | 1 | -0/+37 |
|\ \ | |/ | | | | | 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 | -0/+37 |
| | | | | | | | | locale-dependent regular expressions taking into account the locale. | ||||
* | | Issue #11957: Explicit parameter name when calling re.split() and re.sub() | Victor Stinner | 2014-10-29 | 1 | -7/+7 |
| | | |||||
* | | Issue 1519638: Now unmatched groups are replaced with empty strings in re.sub() | Serhiy Storchaka | 2014-10-10 | 1 | -2/+8 |
| | | | | | | | | and re.subn(). | ||||
* | | Issue #22437: Number of capturing groups in regular expression is no longer | Serhiy Storchaka | 2014-09-29 | 1 | -2/+16 |
| | | | | | | | | limited by 100. | ||||
* | | Issue #22362: Forbidden ambiguous octal escapes out of range 0-0o377 in | Serhiy Storchaka | 2014-09-23 | 1 | -5/+7 |
|/ | | | | regular expressions. | ||||
* | Fixed bytes literals in tests. | Serhiy Storchaka | 2014-09-23 | 1 | -2/+2 |
| | |||||
* | Issue #22423: Fixed debugging output of the GROUPREF_EXISTS opcode in the re | Serhiy Storchaka | 2014-09-21 | 1 | -6/+23 |
| | | | | module. | ||||
* | Restored re pickling test. | Serhiy Storchaka | 2014-09-15 | 1 | -5/+9 |
| | |||||
* | Use more appropriate asserts in re tests. | Serhiy Storchaka | 2014-09-14 | 1 | -115/+115 |
| | |||||
* | Fixed re tests incorrectly ported from 2.x to 3.x. | Serhiy Storchaka | 2014-09-14 | 1 | -22/+27 |
| | |||||
* | Issue #20998: Fixed re.fullmatch() of repeated single character pattern | Serhiy Storchaka | 2014-05-14 | 1 | -0/+5 |
| | | | | with ignore case. Original patch by Matthew Barnett. |