New submission from Carl Witty:
On creation, _pickle.Pickler caches any .persistent_id() method defined by a
subclass (in the pers_func field of PicklerObject). This causes a reference
cycle (pickler -> bound method of pickler -> pickler), so the pickler is held
in memory until th
New submission from Carl Witty :
PyNumber_Long() (and hence long_new()) are willing to return ints, rather than
longs. However, when long_subtype_new() calls long_new(), it casts the result
to PyLongObject* without a check. (Well, there is an assertion, so if
assertions are enabled you
New submission from Carl Witty :
When I try to pickle a recursive tuple (that recurses through a list),
pickle can load the result but cPickle fails with "unpickling stack
overflow".
(I just downloaded and built Python 2.6.2 on 64-bit x86 Debian testing
to verify this bug; it als