| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
v temporary variable was never decref'd. Test this by starting up the
interpreter, hitting C-c, then immediately exiting.
Same potential leak can occur if error is E_NOMEM, since the return is
done in the case block. Added Py_XDECREF(v); to both blocks, just
before the return.
|
|
|
|
| |
sys.version was missing a Py_XDECREF().
|
| |
|
|
|
|
| |
1.5. Omit the second part.
|
|
|
|
| |
unavoidable overflow as OverflowError.
|
|
|
|
|
|
|
|
|
| |
think we have our own DOS box (i.e. we're not started from a command
line shell), we print a message and wait for the user to hit a key
before the DOS box is closed.
The hacky heuristic for determining whether we have our *own* DOS box
(due to Mark Hammond) is to test whether we're on line zero...
|
|
|
|
|
|
|
|
|
| |
The following patches (relative to 1.5.2b1) enable Python dynamic
loading to work on NetBSD platforms that use ELF (presnetly mips and
alpha systems). They automaticly determine wether the system is ELF or
a.out rather than using astatic list of platforms so that when other
NetBSD platforms move to ELF, python will continue to work without
change.
|
|
|
|
| |
Donn Cave tells me the PyImport_BeImageID() function isn't needed anymore.
|
|
|
|
|
|
| |
In other words, hex(sys.hexversion) == 0x010502b2 for Python 1.5.2b2.
This is derived from the new variable PY_VERSION_HEX defined in patchlevel.h.
(Cute, eh?)
|
| |
|
| |
|
| |
|
|
|
|
| |
Patch and suggestion by Greg Couch.
|
| |
|
|
|
|
|
| |
names in the source code (they already had those for the linker,
through some smart macros; but the source still had the old, un-Py names).
|
| |
|
|
|
|
| |
support a macro in pystate.h.
|
|
|
|
|
| |
If we're going to put the PyOS_strtol() proto in intobject.h we should
include it here or the symbol isn't exported on PowerPC.
|
|
|
|
| |
have to use a const-correct prototype on BeOS or the compiler gets uppity.
|
|
|
|
| |
(This only applies when COUNT_ALLOCS is defined.)
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
counterpart is PyExc_NotImplementedError).
|
| |
|
|
|
|
|
| |
the previous patch wasn't -- there was a path through the code that
bypassed all initializations. Thanks to Just for reporting the bug!
|
| |
|
|
|
|
|
|
|
|
| |
"""
I had originally not realized that PyEval_GetGlobals did not
INCREF it's return value. The fix is to add the INCREF,
as shown below.
"""
|
|
|
|
| |
message.
|
| |
|
|
|
|
| |
reliably; check return value of vsprintf().
|
|
|
|
|
| |
object that implements the buffer interface, but requires a buffer
that contains 8-bit character data. Greg Stein.
|
|
|
|
| |
meant for checkin, and which broke marshal.loads().
|
|
|
|
|
| |
LoadLibraryEx(pathname, NULL, LOAD_WITH_ALTERED_SEARCH_PATH)
to search dependent DLLs in the directory of the pathname.
|
| |
|
|
|
|
|
| |
as the code string of code objects, as long as they support
the (readonly) buffer interface. By Greg Stein.
|
|
|
|
|
|
|
|
|
|
|
| |
Also (non-BSDI specific):
- Change the CHECK_STATUS() macro so it tests for nonzero error codes
instead of negative error codes only (this was needed for BSDI, but
appears to be correct according to the PTHREADS spec).
- use memset() to zero out the allocated lock structure. Again, this
was needed for BSDI, but can't hurt elsewhere either.
|
| |
|
|
|
|
| |
"non-default argument follows default argument".
|
|
|
|
| |
instead of silently supplying a default of None fore c.
|
|
|
|
| |
(Also removed whitespace after # in some BEOS related cpp directives.)
|
| |
|
|
|
|
|
| |
pystate.h; pystate.h doesn't use it (I thought I wanted to move the
array there but that won't work).
|
| |
|
|
|
|
|
| |
to protect us from jokers who put items with non-string keys in
sys.modules. Reported by Greg Stein.
|
|
|
|
| |
function name. (Vladimir Kushnir by way of Thomas Gellekum.)
|
|
|
|
| |
(Reported by Jeff Rush.)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
initialization of class exceptions. Specifically:
init_class_exc(): This function now returns an integer status of the
class exception initialization. No fatal errors in this method now.
Also, use PySys_WriteStderr() when writing error messages. When an
error occurs in this function, 0 is returned, but the partial creation
of the exception classes is not undone (this happens elsewhere).
Things that could trigger the fallback:
- exceptions.py fails to be imported (due to syntax error, etc.)
- one of the exception classes is missing (e.g. due to library
version mismatch)
- exception class can't be inserted into __builtin__'s dictionary
- MemoryError instance can't be pre-allocated
- some other PyErr_Occurred
newstdexception(): Changed the error message. This is still a fatal
error because if the string based exceptions can't be created, we
really can't continue.
initerrors(): Be sure to xdecref the .exc field, which might be
non-NULL if class exceptions init was aborted.
_PyBuiltin_Init_2(): If class exception init fails, print a warning
message and reinstate the string based exceptions.
|