| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Fix comment typo
|
| |
|
|
|
|
| |
have access to Purify anymore.
|
|
|
|
| |
been closed. Don't try to reclose it. Found by Insure.
|
|
|
|
|
| |
PyList_Append() always incref's the inserted item. Be sure to decref
it regardless of whether the append succeeds or fails.
|
|
|
|
| |
Py_FatalError() should reflect that.
|
|
|
|
|
|
|
|
|
| |
(64-bit AIX) This is because the RECURSION_LIMIT is too low. This patch lowers
to recusion limit to 7500 such that the recusion check fires before a segfault.
Fredrik suggested/approved the fix in private email, modulo sre's recusion
limit checking no being necessary when PyOS_CheckStack is implemented for
Windows.
|
| |
|
|
|
|
| |
of the init_socket() function. This module is now *always* _socket.
|
|
|
|
|
|
|
|
|
| |
Minor updates for BeOS R5.
Use of OSError in test.test_fork1 changed to TestSkipped, with corresponding
change in BeOS/README (by Fred).
This closes SourceForge patch #100978.
|
|
|
|
|
|
| |
in binascii.c (only on platforms with signed chars -- although Py_CHARMASK
is documented as returning an int, it only does so on platforms with
signed chars).
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
commonly used functions to convert an arbitrary binary string into
a hexadecimal digit representation and back again. These are often
(and often differently) implemented in Python. Best to have one
common fast implementation. Specifically,
binascii_hexlify(): a.k.a. b2a_hex() to return the hex representation
of binary data.
binascii_unhexlify(): a.k.a. a2b_hex() to do the inverse conversion
(hex digits to binary data). The argument must have an even length,
and must contain only hex digits, otherwise a TypeError is raised.
|
|
|
|
|
|
|
| |
after a brief conversation with TP. First, the return values of the
PyString_* function calls should be checked for errors. Second,
bit-manipulations should be used instead of division for spliting the
byte up into its 4 bit digits.
|
|
|
|
| |
to this module to mirror sha's hexdigest() method.
|
|
|
|
| |
The existing win32_error() function now returns the new(ish) WindowsError, ensuring we get correct error messages.
|
|
|
|
|
| |
This is an enhancement to a prior patch (100941) ...
[T]his patch removes the risk of deadlock waiting for the child previously present in certain cases. It adds tracking of all file handles returned from an os.popen* call and only waits for the child process, returning the exit code, on the closure of the final file handle to that child.
|
|
|
|
|
| |
and fwrite return size_t, so it is safer to cast up to the largest type for the
comparison. I believe the cast is required at all to remove compiler warnings.
|
|
|
|
|
|
|
| |
-R on Solaris and -rpath on IRIX.
This closes SourceForge bug #110613 (Jitterbug PR#202), reported by
<aa8vb@yahoo.com>.
|
|
|
|
|
| |
Python.h is included before standard headers since we set _GNU_SOURCE
there. This ensures that strdup() is prototyped.
|
|
|
|
| |
(and yes, "Currintly" also counts <0.5 wink>)
|
|
|
|
| |
for undefined groups
|
| |
|
|
|
|
|
|
|
| |
(this should fix Sjoerd's xmllib problem)
-- added skip field to INFO header
-- changed compiler to generate charset INFO header
-- changed trace messages to support post-mortem analysis
|
|
|
|
| |
for excessive recursion.
|
|
|
|
|
|
| |
Small stylistic changes by VM:
- is_enabled() -> isenabled()
- static ... Py_<func> -> static ... gc_<func>
|
| |
|
| |
|
|
|
|
|
|
| |
This doesn't change the copyright status for these files -- just the
markings! Doing it on the main branch for these three files for which
the HEAD revision was pushed back into 1.6.
|
|
|
|
|
|
|
| |
-- improved error messages
-- factored out SRE_COUNT; the same code is used by
SRE_OP_REPEAT_ONE_TEMPLATE
-- minor cleanups
|
|
|
|
|
| |
This is a notice without a date, which apparently is not a claim to
copyright but only advice to the reader. IANAL. :-)
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
escape, as documented in the comment for the check_escape() function
|
|
|
|
|
| |
-- added REPEAT_ONE operator
-- added ANY_ALL operator (used to represent "(?s).")
|
|
|
|
|
|
|
| |
-- fixed literal check in branch operator
(this broke test_tokenize, as reported by Mark Favas)
-- added REPEAT_ONE operator (still not enabled, though)
-- added some debugging stuff (maxlevel)
|
| |
|
|
|
|
|
|
|
|
|
| |
-- reverted REPEAT operator to use "repeat context" strategy
(from 0.8.X), but done right this time.
-- got rid of backtracking stack; use nested SRE_MATCH calls
instead (should probably put it back again in 0.9.9 ;-)
-- properly reset state in scanner mode
-- don't use aggressive inlining by default
|
| |
|
|
|
|
| |
changed error messages for extend method from "append" to "extend"
|
| |
|
|
|
|
| |
marked my*.h as obsolete
|
|
|
|
|
|
|
|
| |
* After discussion with Trent, all INT_PTR references have been removed in favour of the HANDLE it should always have been. Trent can see no 64bit issues here.
* In this process, I noticed that the close operation was dangerous, in that we could end up passing bogus results to the Win32 API. These result of the API functions passed the bogus values were never (and still are not) checked, but this is closer to "the right thing" (tm) than before.
Tested on Windows and Linux.
|
|
|
|
|
|
| |
this module should not leak in the face of errors.
Checkin that replaces the INT_PTR types with HANDLEs still TBD (but as that is a "spelling" patch, rather than a functional one, I will commit it seperately.
|
| |
|
| |
|
|
|
|
|
| |
underlying process has terminated
(bug fix from David Bolen)
|
|
|
|
|
|
|
| |
originally submitted by Bill Tutt
Note: This code is actually going to be replaced in 2.0 by /F's new
database. Until then, this patch keeps the test suite working.
|