Serhiy Storchaka
ccdf352370
Issue #20283 : RE pattern methods now accept the string keyword parameters
as documented. The pattern and source keyword parameters are left as
deprecated aliases.
12 years ago
Larry Hastings
2623c8c23c
Issue #20530 : Argument Clinic's signature format has been revised again.
The new syntax is highly human readable while still preventing false
positives. The syntax also extends Python syntax to denote "self" and
positional-only parameters, allowing inspect.Signature objects to be
totally accurate for all supported builtins in Python 3.4.
12 years ago
Larry Hastings
581ee3618c
Issue #20326 : Argument Clinic now uses a simple, unique signature to
annotate text signatures in docstrings, resulting in fewer false
positives. "self" parameters are also explicitly marked, allowing
inspect.Signature() to authoritatively detect (and skip) said parameters.
Issue #20326 : Argument Clinic now generates separate checksums for the
input and output sections of the block, allowing external tools to verify
that the input has not changed (and thus the output is not out-of-date).
13 years ago
Larry Hastings
c20472640c
Issue #20390 : Small fixes and improvements for Argument Clinic.
13 years ago
Larry Hastings
5c66189e88
Issue #20189 : Four additional builtin types (PyTypeObject,
PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type)
have been modified to provide introspection information for builtins.
Also: many additional Lib, test suite, and Argument Clinic fixes.
13 years ago
Larry Hastings
df7c22b25b
Issue #19723 : Missed one conversion to the new Argument Clinic syntax.
13 years ago
Larry Hastings
16c5191ab3
Issue #20144 : Argument Clinic now supports simple constants as parameter
default values. inspect.Signature correspondingly supports them in
__text_signature__ fields for builtins.
13 years ago
Serhiy Storchaka
32eddc1bbc
Issue #16203 : Add re.fullmatch() function and regex.fullmatch() method,
which anchor the pattern at both ends of the string to match.
Original patch by Matthew Barnett.
13 years ago
Serhiy Storchaka
5c24d0e504
Issue #13592 : Improved the repr for regular expression pattern objects.
Based on patch by Hugo Lopes Tavares.
13 years ago
Victor Stinner
f558778f07
Fix compiler warning (especially on Windows 64-bit): don't truncate Py_ssize_t
to int
13 years ago
Serhiy Storchaka
efa5a39fa5
Issue #19405 : Fixed outdated comments in the _sre module.
13 years ago
Serhiy Storchaka
8444ebbd72
Issue #18685 : Extract template part of _sre.c into separated sre_lib.h file.
13 years ago
Serhiy Storchaka
9eabac68a3
Issue #18685 : Restore re performance to pre-PEP 393 levels.
13 years ago
Serhiy Storchaka
be80fc9a84
Issue #19327 : Fixed the working of regular expressions with too big charset.
13 years ago
Serhiy Storchaka
36af10c1f7
Issue #17087 : Improved the repr for regular expression match objects.
13 years ago
Brett Cannon
baced5668a
Fix a refleak in _sre
13 years ago
Serhiy Storchaka
25324971fb
Issue #18468 : The re.split, re.findall, and re.sub functions and the group()
and groups() methods of match object now always return a string or a bytes
object.
13 years ago
Georg Brandl
daa1fa991c
Back out accidentally pushed changeset b51218966201.
13 years ago
Georg Brandl
4300019e1a
Add re.fullmatch() function and regex.fullmatch() method, which anchor the
pattern at both ends of the string to match.
Patch by Matthew Barnett.
Closes #16203 .
13 years ago
Serhiy Storchaka
134f0de66d
Issue #18672 : Fixed format specifiers for Py_ssize_t in debugging output in
the _sre moduel.
13 years ago
Victor Stinner
1fa174a418
Get rid of signed/unsigned comparaison in _sre.c
Fix compilation warnings on Windows (Visual C++) like: "_sre.c(3121): warning
C4018: '>' : signed/unsigned mismatch".
_validate_outer() ensures that groups >= 0, so _validate_inner() can cast
groups to size_t.
13 years ago
Serhiy Storchaka
8fa8ee3970
Issue #18701 : Remove support of old CPython versions (<3.0) from C code.
13 years ago
Serhiy Storchaka
1f35ae0a3c
Issue #17998 : Fix an internal error in regular expression engine.
13 years ago
Serhiy Storchaka
4bb17348f5
Issue #17016 : Get rid of possible pointer wraparounds and integer overflows
in the re module. Patch by Nickolai Zeldovich.
13 years ago
Serhiy Storchaka
fa46816915
Issue #9669 : Protect re against infinite loops on zero-width matching in
non-greedy repeat. Patch by Matthew Barnett.
13 years ago
Serhiy Storchaka
6a8e2b4982
Issue #9669 : Protect re against infinite loops on zero-width matching in
non-greedy repeat. Patch by Matthew Barnett.
13 years ago
Serhiy Storchaka
70ca0210e8
Issue #13169 : The maximal repetition number in a regular expression has been
increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on
64-bit).
13 years ago
Serhiy Storchaka
e18e05cce9
Issue #13169 : The maximal repetition number in a regular expression has been
increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on
64-bit).
13 years ago
Benjamin Peterson
9dccb01703
use PyInt_FromSsize_t instead of PyLong_FromSsize_t ( #10182 )
14 years ago
Serhiy Storchaka
c1b59d4552
Issue #16688 : Fix backreferences did make case-insensitive regex fail on non-ASCII strings.
Patch by Matthew Barnett.
14 years ago
Andrew Svetlov
c08ded9e4a
rename MathcObject to match object in doctrings for re module ( #16760 )
14 years ago
Andrew Svetlov
0b64c1415e
rename MathcObject to match object in doctrings for re module ( #16760 )
14 years ago
Andrew Svetlov
1c6c90fc73
Issue #16443 : Add docstrings to regular expression match objects.
Patch by Anton Kasyanov.
14 years ago
Andrew Svetlov
56ad5ed5ad
Issue #16443 : Add docstrings to regular expression match objects.
Patch by Anton Kasyanov.
14 years ago
Gregory P. Smith
64ab35e11d
1 << 31 is invalid for signed integers, fix it by making 1 unsigned.
Found by Clang trunk's Undefined-Behavior Sanitizer. [more to come]
14 years ago
Gregory P. Smith
90555d0f0d
1 << 31 is invalid for signed integers, fix it by making 1 unsigned.
Found by Clang trunk's Undefined-Behavior Sanitizer. [more to come]
14 years ago
Antoine Pitrou
43fb54cd4f
Issue #10182 : The re module doesn't truncate indices to 32 bits anymore.
Patch by Serhiy Storchaka.
14 years ago
Antoine Pitrou
b83575b0a5
Issue #10182 : The re module doesn't truncate indices to 32 bits anymore.
Patch by Serhiy Storchaka.
14 years ago
Antoine Pitrou
b83ea144cc
Issue #1160 : Fix compiling large regular expressions on UCS2 builds.
Patch by Serhiy Storchaka.
14 years ago
Antoine Pitrou
39bdad813a
Issue #1160 : Fix compiling large regular expressions on UCS2 builds.
Patch by Serhiy Storchaka.
14 years ago
Victor Stinner
7a6d7cf3db
Issue #9566 : Use the right type to fix a compiler warnings on Win64
14 years ago
Sean Reifschneider
7b3c975aaf
closes #14259 re.finditer() now takes keyword arguments: pos, endpos.
Contrary to the documentation, finditer() did not take pos and endpos
keyword arguments.
14 years ago
Benjamin Peterson
e48944b69c
keep the buffer object around while we're using it ( closes #14212 )
14 years ago
Ross Lagerwall
88748d7bfe
Issue #10951 : Fix compiler warnings in _sre.c
14 years ago
Victor Stinner
63ab875cfe
Remove "#ifdef Py_UNICODE_WIDE": Python is now always wide
15 years ago
Senthil Kumaran
202a3c422b
3.2 - Fix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c
15 years ago
Senthil Kumaran
d583068e7d
Fix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c
15 years ago
Martin v. Löwis
c47adb04b3
Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE.
15 years ago
Victor Stinner
0058b8603f
_sre: don't use Py_UNICODE anymore
* Downcasting from Py_UCS4 to Py_UNICODE is wrong is Py_UNICODE is 16-bit
wchar_t
* Remove old special case in getstring(), unicode is now handled separetely
15 years ago
Ezio Melotti
7c8c1ea3ec
Fix whitespace.
15 years ago