| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
- changed "group" operator to "groupref"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the pattern must have a fixed width.
- got rid of array-module dependencies; the match pro-
gram is now stored inside the pattern object, rather
than in an extra string buffer.
- cleaned up a various of potential leaks, api abuses,
and other minors in the engine module.
- use mal's new isalnum macro, rather than my own work-
around.
- untabified test_sre.py. seems like I removed a couple
of trailing spaces in the process...
|
|
|
|
|
|
|
| |
test is run as a script and when imported via the regression test
framework.
Problem reported by Phillip Porch <root@theporch.com>.
|
|
|
|
|
|
|
|
| |
openpty(): Fallback code when os.openpty() does not exist attempted to
call _slave_open(), which should have been slave_open().
This bug only showed on platforms which do not provide a working openpty()
in the C library.
|
|
|
|
|
|
|
|
|
| |
This patch implements relative-path semantics for the "source" facility resembling
those of cpp(1), documents the change, and improves the shlex test main to
make it easier to test this feature. Along the way, it fixes a name error
in the existing docs.
[Additional documentation markup changes for consistency by FLD.]
|
|
|
|
|
|
| |
and defaults as for filecmp.cmp(). Updated docstring
accordingly, and formatted it more like others in the standard
library.
|
|
|
|
|
|
|
| |
This patch delegates more string functions to string object methods,
uses the varargs delegation syntax, and stops using stringold.
Closes SourceForge patch #100712.
|
| |
|
|
|
|
|
|
|
|
| |
"lastgroup" is the name of the last matched capturing group,
"lastindex" is the index of the same group. if no group was
matched, both attributes are set to None.
the (?P#) feature will be removed in the next relase.
|
|
|
|
|
|
|
|
|
|
| |
used by the code generator)
- changed max repeat value in engine (to match earlier array fix)
- added experimental "which part matched?" mechanism to sre; see
http://hem.passagen.se/eff/2000_07_01_bot-archive.htm#416954
or python-dev for details.
|
|
|
|
| |
Noted by Rob Hooft <rob@hooft.net>.
|
|
|
|
|
|
|
|
|
| |
speedup for some tests, including the python tokenizer.
-- added support for an optional charset anchor to the engine
(currently unused by the code generator).
-- removed workaround for array module bug.
|
|
|
|
| |
- minor comment touchups in the C module
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
-- changed 1.6 to 2.0 in the file headers
-- fixed ISALNUM macro for the unicode locale. this
solution isn't perfect, but the best I can do with
Python's current unicode database.
|
| |
|
| |
|
|
|
|
| |
Similar to an old bug in ntpath.py.
|
|
|
|
|
| |
splittype(): Always lower-case the URL scheme; these are supposed to be
normalized according to RFC 1738 anyway.
|
|
|
|
|
| |
getatime() returned the mtime instead of the atime.
Similar to an old bug in posixpath.py.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Test case for the pty module.
|
|
|
|
| |
- fixed parser flag propagation (of all stupid bugs...)
|
|
|
|
| |
more suitable.
|
|
|
|
| |
attempting a recursive import and causing a fatal error.
|
|
|
|
|
| |
Someone who knows what they are doing needs to replace this with something
that makes sense -- I'm not running Windows right now.
|
|
|
|
|
|
| |
This'll work fine with 2.0 or 1.5.2, but is less than ideal for
1.6a1/a2. But the code to accomodate 1.6a1/a2 was released with
Distutils 0.9, so it can go away now.
|
|
|
|
|
|
| |
Regression test for the new winreg.py module.
[Could a Windows person someone please review this?]
|
| |
|
|
|
|
| |
- removed evil tabs from sre_parse and sre_compile
|
|
|
|
|
|
|
|
|
| |
allows the caller to execute the various tests in pseudo-random order -
default is still to execute tests in the order returned by findtests().
* moved initialization of the various flag variables to the main() function
definition, making it possible to execute regrtest.main() interactively
and still override default behavior.
|
|
|
|
|
| |
is actually by Fredrik Lundh). This will break the re tests --
Fredrik will fix this before the final release.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-- added pickling support (only works if sre is imported)
-- fixed wordsize problems in engine
(instead of casting literals down to the character size,
cast characters up to the literal size (same as the code
word size). this prevents false hits when you're matching
a unicode pattern against an 8-bit string. (unfortunately,
this broke another test, but I think the test should be
changed in this case; more on that on python-dev)
-- added sre.purge function
(unofficial, clears the cache)
|
|
|
|
| |
- untabified sre_constants.py
|
|
|
|
| |
Added test output.
|
|
|
|
|
|
|
| |
New test for huge formatting strings (these could cause core
dumps in previous versions).
By Trent Mick.
|
| |
|
|
|
|
| |
Updated test output (the ucn tests are now in test_ucn).
|
|
|
|
| |
Moved tests of new Unicode Char Name support to a separate test.
|
|
|
|
| |
(closes #3 and #7 from the status report)
|
| |
|
|
|
|
| |
- added test suite
|