| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
tp_free is NULL or PyObject_Del at the end. Because it's a base type
it must call tp_free in its dealloc function, and because it's gc'able
it must not call PyObject_Del.
inherit_slots(): Don't inherit tp_free unless the type and its base
agree about whether they're gc'able. If the type is gc'able and the
base is not, and the base uses the default PyObject_Del for its
tp_free, give the type PyObject_GC_Del for its tp_free (the appropriate
default for a gc'able type).
cPickle.c: The Pickler and Unpickler types claim to be base classes
and gc'able, but their dealloc functions didn't call tp_free.
Repaired that. Also call PyType_Ready() on these typeobjects, so
that the correct (PyObject_GC_Del) default memory-freeing function
gets plugged into these types' tp_free slots.
|
| | |
|
| |
|
|
| |
classmethod, staticmethod, cPickle.Pickler, cPickle.UNpickler
|
| |
|
|
|
|
| |
Windows when n is too big to fit in a 32-bit int. This was a hole in
2.2's large file support on Windows, and turns out it's a bad hole at
least for ZODB.
|
| | |
|
| |
|
|
|
|
| |
as "a bug" because there's no other way in core Python to ensure that
bytes written are actually on disk. At least ZODB wants this guarantee,
for robustness against crashes.
|
| |
|
|
|
|
|
|
|
|
|
| |
Fix SF bug #697220, string.strip implementation/doc mismatch
Attempt to make all the various string/unicode *strip methods the same.
* Doc - add doc for when functions were added
* UserString
* string/unicode object methods
* string module functions
'chars' is used for the last parameter everywhere.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
pack_float, pack_double, save_float: All the routines for creating
IEEE-format packed representations of floats and doubles simply ignored
that rounding can (in rare cases) propagate out of a long string of
1 bits. At worst, the end-off carry can (by mistake) interfere with
the exponent value, and then unpacking yields a result wrong by a factor
of 2. In less severe cases, it can end up losing more low-order bits
than intended, or fail to catch overflow *caused* by rounding.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
completion was botched.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
PyObject_Generic{Get,Set}Attr:
Don't access tp_descr_{get,set} of a descriptor without checking the
flag bits of the descriptor's type. While we know that the main type
(the type of the object whose attribute is being accessed) has all the
right flag bits (or else PyObject_Generic{Get,Set}Attr wouldn't be
called), we don't know that for its class attributes!
|
| |
|
|
|
|
| |
Provide access to the import lock, fixing SF bug #580952. This is
mostly from SF patch #683257, but I had to change unlock_import() to
return an error value to avoid fatal error.
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Fix SF bug# 676155, RuntimeWarning with tp_compare
Check return value of PyLong_AsDouble(), it can return an error.
|
| |
|
|
|
|
|
| |
Fix SF bug #667147, Segmentation fault printing str subclass
Fix infinite recursion which occurred when printing an object
whose __str__() returned self.
|
| |
|
|
|
| |
this as a fix to a long outstanding bug. Instead, it makes sure that the
methods work as documented with any generator.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
SF #665913, Fix mmap module core dump with unix
Closing an mmap'ed file (calling munmap) twice on Solaris caused a core dump.
|
| |
|
|
|
| |
fixes. Not that I'm releasing 2.2.3 tomorrow, but I'd like to be
prepared.
|
| |
|
|
|
| |
Fix from Michael Stone for SF bug #660476 and #513033 (bogus thread
state swaps in readline).
|
| | |
|
| | |
|
| |
|
|
|
| |
uses bash and so does my 10.2 system. "limit stacksize 2048" is the
right invocation for tcsh/csh.
|
| | |
|
| |
|
|
|
| |
Barry may want to update the news item about email 2.4.3 with more
details.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
in method name
|
| | |
|
| |
|
|
|
| |
poring over the logs. Quite likely I've forgotten some things,
introduced typos, and organized things less than ideally.
|
| |
|
|
|
|
|
|
|
|
|
| |
- Changed new-style class instantiation so that when C's __new__
method returns something that's not a C instance, its __init__ is
not called. [SF bug #537450]
XXX This is arguably a semantic change, but it's hard to imagine a
reason for wanting to depend on the old behavior. If problems with
this are reported within a week of the release of 2.2.2 beta 1, we may
revert this change.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
2002/08/11 12:23:04 lemburg Python/bltinmodule.c 2.262
2002/08/11 12:23:04 lemburg Objects/unicodeobject.c 2.162
2002/08/11 12:23:03 lemburg Misc/NEWS 1.461
2002/08/11 12:23:03 lemburg Lib/test/test_unicode.py 1.65
2002/08/11 12:23:03 lemburg Include/unicodeobject.h 2.39
Add C API PyUnicode_FromOrdinal() which exposes unichr() at C level.
u'%c' will now raise a ValueError in case the argument is an
integer outside the valid range of Unicode code point ordinals.
Closes SF bug #593581.
|
| |
|
|
| |
Add Makefile.pre.in to -devel.
|
| | |
|
| |
|
|
|
| |
Disable building of the fpectl module -- it's dangerous or useless
except in the hands of experts.
|
| | |
|