| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
and the destructor is called early, it doesn't DECREF garbage.
|
|
|
|
| |
standard Python API function so it should not have a Py prefix.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Loading non-binary string pickles checks for insecure
strings. This is needed because cPickle (still)
uses a restricted eval to parse non-binary string pickles.
This change is needed to prevent untrusted
pickles like::
"S'hello world'*2000000\012p0\012."
from hosing an application.
- User-defined types can now support unpickling without
executing a constructor.
The second value returned from __reduce__ can now be None,
rather than an argument tuple. On unpickling, if the second
value returned from __reduce__ during pickling was None, then
rather than calling the first value returned from __reduce__,
directly, the __basicnew__ method of the first value returned
from __reduce__ is called without arguments.
|
|
|
|
| |
distribution.
|
|
|
|
|
| |
what RCS checkout options are used. Problem first diagnosed by Marc
Lemburg.
|
| |
|
| |
|
|
|
|
|
| |
crash due to GvR's last check in message :-). Will try to convince JF
to remove all this evilness.
|
| |
|
|
|
|
| |
in GNU libc on some platforms.
|
| |
|
| |
|
|
|
|
| |
This silences some compilers.
|
|
|
|
| |
symbols is needed, define these in Python.h with a Py_ prefix.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Quieted gcc -Wall by removing unused local variables.
- Added some choice parentheses around assignments in conditional
tests.
- Removed an unused (and seemingly unreachable) err label in
load_short_binstring().
- in Unpickler_load(), removed \. in string format.
- init_stuff() was declared to return an int, but had these
problems:
- it was returning NULL instead of 0 or 1 in some cases
- it was falling of the end of the routine without returning
anything
- the call of init_stuff() in initcPickle() was never checking
the return value anyway.
I changed all this by returning 1 in the case of errors, 0 when
no error occurred. Then in initcPickle(), if init_stuff()
returns non-zero, I call Py_FatalError().
Suppressing my urge to reformat according to Python coding standards!
:-)
|
|
|