- 11 Jul, 2013 27 commits
-
-
Victor Stinner authored
-
Victor Stinner authored
-
Victor Stinner authored
attributes before handling errors _Pickler_New() now calls PyObject_GC_Del() instead of Py_DECREF() on error, because the pickle object is created using PyObject_GC_New(). Fix a crash in the destructor when an attribute is not initiallized.
-
Victor Stinner authored
The caller gets an error code and can raise a classic Python exception.
-
Victor Stinner authored
-
Victor Stinner authored
If an attribute is not initialized, the destructor can crash
-
Victor Stinner authored
type->tp_str must not point to slot_tp_str() if type has no __str__ attribute, so there is no reason for slot_tp_str() to fallback on slot_tp_str() on lookup error. Moreover, calling PyErr_Clear() may hide a real bug like MemoryError. If __str__ attribute is removed, slots must be updated (which is done by type_setattro()).
-
Victor Stinner authored
-
R David Murray authored
-
R David Murray authored
The problem was I was only checking for decimal digits after the third '?', not for *hex* digits :(. This changeset also fixes a couple of comment typos, deletes an unused function relating to encoded word parsing, and removed an invalid 'if' test from the folding function that was revealed by the tests written to validate this issue.
-
Serhiy Storchaka authored
more bytes than requested.
-
Serhiy Storchaka authored
more bytes than requested.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
do with byte strings. Added tests for Tcl.split() and Tcl.splitline().
-
Serhiy Storchaka authored
do with byte strings. Added tests for Tcl.split() and Tcl.splitline().
-
Serhiy Storchaka authored
not to stderr. Patch by Berker Peksag and Michael Dickens.
-
R David Murray authored
-
R David Murray authored
Patch by Dmi Baranov.
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Serhiy Storchaka authored
-
Christian Heimes authored
-
Christian Heimes authored
-
Christian Heimes authored
PyModule_GetDef() returns an error.
-
Christian Heimes authored
PyModule_GetDef() returns an error.
-
- 10 Jul, 2013 6 commits
-
-
R David Murray authored
Also fixes a resource warning that occurred when the fallback is taken. Patch by Serhiy Storchaka. (We couldn't figure out how to write tests for this.)
-
R David Murray authored
-
R David Murray authored
-
R David Murray authored
-
R David Murray authored
Patch by Andrew Rowe.
-
Victor Stinner authored
building the tuple (type, value, traceback) passed to the callback. PyTuple_Pack() does crash if an argument is NULL.
-
- 09 Jul, 2013 5 commits
-
-
Charles-François Natali authored
addresses.
-
Charles-François Natali authored
addresses.
-
Christian Heimes authored
-
Christian Heimes authored
-
Raymond Hettinger authored
-
- 08 Jul, 2013 2 commits
-
-
Victor Stinner authored
in set2list()
-
Victor Stinner authored
Don't mark old extra memory dead before calling realloc(). realloc() can fail and realloc() must not touch the original buffer on failure. So mark old extra memory dead only on success if the new buffer did not move (has the same address).
-