Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-36251: Fix format strings used in match_repr() and stdprinter_repr(). ↵ | sth | 2019-03-10 | 1 | -1/+1 |
| | | | | (GH-12252) | ||||
* | bpo-35459: Use PyDict_GetItemWithError() instead of PyDict_GetItem(). (GH-11112) | Serhiy Storchaka | 2019-02-25 | 1 | -32/+26 |
| | |||||
* | bpo-34294: re module, fix wrong capturing groups in rare cases. (GH-11546) | animalize | 2019-02-18 | 1 | -1/+1 |
| | | | | | | Need to reset capturing groups between two SRE(match) callings in loops, this fixes wrong capturing groups in rare cases. Also add a missing index in re.rst. | ||||
* | bpo-33029: Fix signatures of getter and setter functions. (GH-10746) | Serhiy Storchaka | 2018-11-27 | 1 | -4/+4 |
| | | | Fix also return type for few other functions (clear, releasebuffer). | ||||
* | Simplified implementation of _sre.ascii_iscased(). (GH-9097) | Sergey Fedoseev | 2018-09-12 | 1 | -6/+1 |
| | |||||
* | bpo-34636: Use fast path for more chars in SRE category macros. (GH-9170) | Sergey Fedoseev | 2018-09-11 | 1 | -3/+3 |
| | | | | | | | When handling \s, \d, or \w (and their inverse) escapes in bytes regexes this a small but measurable performance improvement. <!-- issue-number: [bpo-34636](https://www.bugs.python.org/issue34636) --> https://bugs.python.org/issue34636 <!-- /issue-number --> | ||||
* | _sre.c: Removed unused SRE_IS_ALNUM macro (GH-9090) | Sergey Fedoseev | 2018-09-07 | 1 | -2/+0 |
| | |||||
* | bpo-32308: Replace empty matches adjacent to a previous non-empty match in ↵ | Serhiy Storchaka | 2018-01-04 | 1 | -2/+2 |
| | | | | re.sub(). (#4846) | ||||
* | bpo-25054, bpo-1647489: Added support of splitting on zerowidth patterns. ↵ | Serhiy Storchaka | 2017-12-04 | 1 | -55/+22 |
| | | | | | | (#4471) Also fixed searching patterns that could match an empty string. | ||||
* | bpo-31690: Allow the inline flags "a", "L", and "u" to be used as group ↵ | Serhiy Storchaka | 2017-10-24 | 1 | -18/+19 |
| | | | | flags for RE. (#3885) | ||||
* | bpo-30397: Add re.Pattern and re.Match. (#1646) | Serhiy Storchaka | 2017-10-04 | 1 | -16/+25 |
| | |||||
* | bpo-30285: Optimize case-insensitive matching and searching (#1482) | Serhiy Storchaka | 2017-05-09 | 1 | -0/+34 |
| | | | | of regular expressions. | ||||
* | bpo-30277: Replace _sre.getlower() with _sre.ascii_tolower() and ↵ | Serhiy Storchaka | 2017-05-05 | 1 | -9/+20 |
| | | | | _sre.unicode_tolower(). (#1468) | ||||
* | bpo-30215: Make re.compile() locale agnostic. (#1361) | Serhiy Storchaka | 2017-05-05 | 1 | -0/+3 |
| | | | | | | 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. | ||||
* | remove configure test for inline keyword (#1231) | Benjamin Peterson | 2017-04-21 | 1 | -3/+1 |
| | | | We require C99, so a configure test for this standard feature is not needed. | ||||
* | bpo-10076: Compiled regular expression and match objects now are copyable. ↵ | Serhiy Storchaka | 2017-04-16 | 1 | -117/+14 |
| | | | | (#1000) | ||||
* | bpo-28765: Use concrete types API in _sre.c. (#1009) | Serhiy Storchaka | 2017-04-16 | 1 | -37/+37 |
| | |||||
* | bpo-29878: Add global instances of int for 0 and 1. (#852) | Serhiy Storchaka | 2017-03-30 | 1 | -1/+1 |
| | |||||
* | Issue #29444: Fixed out-of-bounds buffer access in the group() method of | Serhiy Storchaka | 2017-02-04 | 1 | -2/+7 |
|\ | | | | | | | the match object. Based on patch by WGH. | ||||
| * | Issue #29444: Fixed out-of-bounds buffer access in the group() method of | Serhiy Storchaka | 2017-02-04 | 1 | -2/+7 |
| |\ | | | | | | | | | | the match object. Based on patch by WGH. | ||||
| | * | Issue #29444: Fixed out-of-bounds buffer access in the group() method of | Serhiy Storchaka | 2017-02-04 | 1 | -2/+7 |
| | | | | | | | | | | | | the match object. Based on patch by WGH. | ||||
* | | | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever | Serhiy Storchaka | 2017-01-23 | 1 | -8/+4 |
| | | | | | | | | | | | | possible. Patch is writen with Coccinelle. | ||||
* | | | Issue #29195: Removed support of deprecated undocumented keyword arguments | Serhiy Storchaka | 2017-01-13 | 1 | -72/+15 |
| | | | | | | | | | | | | in methods of regular expression objects. | ||||
* | | | Issue #28858: Remove _PyObject_CallArg1() macro | Victor Stinner | 2016-12-05 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace _PyObject_CallArg1(func, arg) with PyObject_CallFunctionObjArgs(func, arg, NULL) Using the _PyObject_CallArg1() macro increases the usage of the C stack, which was unexpected and unwanted. PyObject_CallFunctionObjArgs() doesn't have this issue. | ||||
* | | | Issue #28765: _sre.compile() now checks the type of groupindex and indexgroup | Victor Stinner | 2016-11-22 | 1 | -3/+3 |
|/ / | | | | | | | | | | | 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/+6 |
| | | | | | | | | A pattern is equal to itself. | ||||
* | | Issue #28727: Fix typo in pattern_richcompare() | Victor Stinner | 2016-11-22 | 1 | -1/+1 |
| | | | | | | | | Typo catched by Serhiy Storchaka, thanks! | ||||
* | | Implement rich comparison for _sre.SRE_Pattern | Victor Stinner | 2016-11-21 | 1 | -6/+67 |
| | | | | | | | | | | | | | | 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 24454: Removed unused match_getitem_doc. | Eric V. Smith | 2016-09-11 | 1 | -3/+0 |
| | | |||||
* | | Issue 24454: Added whatsnew entry, removed __getitem__ from match_methods. ↵ | Eric V. Smith | 2016-09-11 | 1 | -1/+0 |
| | | | | | | | | Thanks Serhiy Storchaka. | ||||
* | | Issue 24454: Improve the usability of the re match object named group API | Eric V. Smith | 2016-09-11 | 1 | -1/+18 |
| | | |||||
* | | replace Py_(u)intptr_t with the c99 standard types | Benjamin Peterson | 2016-09-06 | 1 | -7/+7 |
| | | |||||
* | | Rename _PyObject_FastCall() to _PyObject_FastCallDict() | Victor Stinner | 2016-08-22 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | Issue #27809: * Rename _PyObject_FastCall() function to _PyObject_FastCallDict() * Add _PyObject_FastCall(), _PyObject_CallNoArg() and _PyObject_CallArg1() macros calling _PyObject_FastCallDict() | ||||
* | | pattern_subx() now uses fast call | Victor Stinner | 2016-08-19 | 1 | -8/+1 |
| | | | | | | | | Issue #27128. | ||||
* | | merge 3.5 (#27774) | Benjamin Peterson | 2016-08-16 | 1 | -3/+1 |
|\ \ | |/ | |||||
| * | merge 3.4 (#27774) | Benjamin Peterson | 2016-08-16 | 1 | -3/+1 |
| |\ | |||||
| | * | merge 3.3 (#27774) | Benjamin Peterson | 2016-08-16 | 1 | -3/+1 |
| | |\ | |||||
| | | * | do not decref value borrowed from list (closes #27774) | Benjamin Peterson | 2016-08-16 | 1 | -3/+1 |
| | | | | |||||
* | | | | - Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -6/+6 |
|\ \ \ \ | |/ / / | | | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
| * | | | Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
* | | | | Issue #27177: Match objects in the re module now support index-like objects | Serhiy Storchaka | 2016-06-18 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | as group indices. Based on patches by Jeroen Demeyer and Xiang Zhang. | ||||
* | | | | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF | Serhiy Storchaka | 2016-04-10 | 1 | -1/+1 |
|\ \ \ \ | |/ / / | | | | | | | | | in places where Py_DECREF was used. | ||||
| * | | | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF | Serhiy Storchaka | 2016-04-10 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | in places where Py_DECREF was used. | ||||
* | | | | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -1/+1 |
|\ \ \ \ | |/ / / | |||||
| * | | | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -1/+1 |
| | | | | |||||
* | | | | Issue #25923: Added more const qualifiers to signatures of static and ↵ | Serhiy Storchaka | 2015-12-25 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | private functions. | ||||
* | | | | Issue #25923: Added the const qualifier to static constant arrays. | Serhiy Storchaka | 2015-12-25 | 1 | -1/+1 |
| | | | | |||||
* | | | | Issue #20440: Massive replacing unsafe attribute setting code with special | Serhiy Storchaka | 2015-12-24 | 1 | -2/+1 |
|\ \ \ \ | |/ / / | | | | | | | | | macro Py_SETREF. | ||||
| * | | | Issue #20440: Massive replacing unsafe attribute setting code with special | Serhiy Storchaka | 2015-12-24 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | macro Py_SETREF. | ||||
* | | | | Issue #18684: Fixed reading out of the buffer in the re module. | Serhiy Storchaka | 2015-07-06 | 1 | -5/+21 |
|\ \ \ \ | |/ / / |