| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
- fixed compiler problems when using locale/unicode flags
- fixed group/octal code parsing in sub/subn templates
|
|
|
|
|
| |
misc/install.c, still needs to be updated, and it looks like a non-trivial
change.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
group reset problem. in the meantime, I added some
optimizations:
- added "inline" directive to LOCAL
(this assumes that AC_C_INLINE does what it's
supposed to do). to compile SRE on a non-unix
platform that doesn't support inline, you have
to add a "#define inline" somewhere...
- added code to generate a SRE_OP_INFO primitive
- added code to do fast prefix search
(enabled by the USE_FAST_SEARCH define; default
is on, in this release)
|
|
|
|
| |
otherwise just generate an '/export:' option.
|
|
|
|
|
| |
fail do we try for win32api/win32con. If *those* both fail, then we don't
have registry access. Phew!
|
| |
|
|
|
|
|
| |
More reformatting by me.
Also added some editorial comments.
|
| |
|
| |
|
|
|
|
| |
W3C DOM implementation for Python.
|
| |
|
| |
|
|
|
|
| |
SAX interfaces for Python.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
errors in some of the hash algorithms. For exmaple, in float_hash and
complex_hash a certain part of the value is not included in the hash
calculation. See Tim's, Guido's, and my discussion of this on
python-dev in May under the title "fix float_hash and complex_hash for
64-bit *nix"
(2) The hash algorithms that use pointers (e.g. func_hash, code_hash)
are universally not correct on Win64 (they assume that sizeof(long) ==
sizeof(void*))
As well, this patch significantly cleans up the hash code. It adds the
two function _Py_HashDouble and _PyHash_VoidPtr that the various
hashing routine are changed to use.
These help maintain the hash function invariant: (a==b) =>
(hash(a)==hash(b))) I have added Lib/test/test_hash.py and
Lib/test/output/test_hash to test this for some cases.
|
|
|
|
|
|
|
|
|
|
|
| |
get_starttag_text(): New method.
Return the text of the most recently parsed start tag, from
the '<' to the '>' or '/'. Not really useful for structure
processing, but requested for Web-related use. May also be
useful for being able to re-generate the input from the parse
events, but there's no equivalent for end tags.
attrfind: Be a little more forgiving of unquoted attribute values.
|
|
|
|
|
|
|
|
|
| |
(those semantics are weird...)
- got rid of $Id$'s (for the moment, at least). in other
words, there should be no more "empty" checkins.
- internal: some minor cleanups.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(test_sre still complains about split, but that's caused by
the group reset bug, not split itself)
- added more mark slots
(should be dynamically allocated, but 100 is better than 32.
and checking for the upper limit is better than overwriting
the memory ;-)
- internal: renamed the cursor helper class
- internal: removed some bloat from sre_compile
|
|
|
|
| |
OO wrapper for _winreg; blessed by Mark Hammond.
|
|
|
|
| |
has reviewed this, too.
|
| |
|