| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
accidentally wiped out by Ping's patch (which shouldn't have affected
this file at all, had Ping done a cvs update).
This checkin restores Gordon's version, with Fredrik's change merged
back in.
|
|
|
|
| |
New test output
|
|
|
|
| |
(closes the "SRE: symbolic reference" bug)
|
|
|
|
|
|
|
|
|
|
|
| |
tests in sre_patch back to previous version
- fixed return value from findall
- renamed a bunch of functions inside _sre (way too
many leading underscores...)
</F>
|
|
|
|
|
| |
- removed some hacks that worked around 1.6 alpha bugs
- removed bogus test code from sre_parse
|
| |
|
|
|
|
| |
Correct exception information in one docstring.
|
|
|
|
|
| |
we can run "sdist" on a distribution with old-style extension structures
even if we haven't built it yet. Bug spotted by Harry Gebel.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changed 'prune_file_list()' so it also prunes out RCS and CVS directories.
Added 'is_regex' parameter to 'select_pattern()', 'exclude_pattern()',
and 'translate_pattern()', so that you don't have to be constrained
by the simple shell-glob-like pattern language, and can escape into
full-blown regexes when needed. Currently this is only available
in code -- it's not exposed in the manifest template mini-language.
Added 'prune' option (controlled by --prune and --no-prune) to determine
whether we call 'prune_file_list()' or not -- it's true by default.
Fixed 'negative_opt' -- it was misnamed and not being seen by dist.py.
Added --no-defaults to the option table, so it's seen by FancyGetopt.
|
|
|
|
|
|
|
|
| |
Testing: test_array.py was also extended to check that one can set the
full range of values for each of the integral signed and unsigned
array types.
This closes SourceForge patch #100506.
|
|
|
|
| |
Updated test output.
|
|
|
|
|
| |
Added tests for the new Unicode character name support in the
standard unicode-escape codec.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds the openpty() and forkpty() library calls to posixmodule.c,
when they are available on the target
system. (glibc-2.1-based Linux systems, FreeBSD and BSDI at least, probably
the other BSD-based systems as well.)
Lib/pty.py is also rewritten to use openpty when available, but falls
back to the old SGI method or the "manual" BSD open-a-pty
code. Openpty() is necessary to use the Unix98 ptys under Linux 2.2,
or when using non-standard tty names under (at least) BSDI, which is
why I needed it, myself ;-) forkpty() is included for symmetry.
|
|
|
|
|
|
|
| |
<skip@mojam.com>. Revisions to the markup to make it pass LaTeX, added
an index entry and a reference from the sys.exitfunc documentation.
This closes SourceForge patch #100620.
|
| |
|
|
|
|
| |
'link_shared_object()'.
|
|
|
|
|
|
|
| |
methods (but not 'link_executable()', hmmm). Currently only used by
BCPPCompiler; it's a dummy parameter for UnixCCompiler and MSVCCompiler.
Also added 'bcpp' to compiler table used by 'new_compiler()'.
|
| |
|
|
|
|
|
|
|
|
| |
Two major points:
* lots of overlap with MSVCCompiler; the common code really should be
factored out into a base class, say WindowsCCompiler
* it doesn't work: weird problem spawning the linker (see comment for
details)
|
|
|
|
|
| |
command objects.
Various formatting tweaks, typo fixes in comments.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Ditched my old code that fixed relative paths in the Makefile -- didn't work,
doomed to failure, etc.
|
|
|
|
| |
the 'implib_dir' attribute is back (only on NT, of course).
|
|
|
|
|
|
| |
Also supposedly made some change to where .lib files wind up under MSVC++,
but I don't understand how to code is doing what Thomas says it's
doing.
|
| |
|
| |
|
|
|
|
|
| |
Added 'check_lib()', which provides a subset of the functionality of
'check_func()' with a simpler interface and implementation.
|
| |
|
|
|
|
| |
and I lack the time to track down the cause.
|
|
|
|
| |
parsing the sample data once with 8-bit strings and once with Unicode.
|
| |
|
| |
|
| |
|
|
|
|
| |
connections.
|
| |
|
|
|
|
|
| |
doesn't blow up. We don't currently use the 'set_executables()' bureaucracy,
although it would be nice to do so for consistency with UnixCCompiler.
|