- 12 Jul, 2013 10 commits
-
-
R David Murray authored
-
R David Murray authored
-
R David Murray authored
There is more to be done here in terms of accepting RFC invalid input that some mailers accept, but this covers the valid RFC places where encoded words can occur in structured headers.
-
Vinay Sajip authored
-
Vinay Sajip authored
-
Brett Cannon authored
building Python but having some optional module which didn't build. Patch by Yogesh Chaudhari.
-
Brett Cannon authored
...`` when an ImportError occurs. Other cases had already been switched over to using the repr. Thanks to Tomasz Maćkowiak for the patch.
-
Brett Cannon authored
constants in importlib._bootstrap. Along the way clean up from string interpolation to use the repr explicitly. Initial patch by Madison May.
-
Victor Stinner authored
* Use Py_DECREF() instead of PyObject_GC_Del() to release correctly all resources * Raise MemoryError on memory allocation failure
-
Victor Stinner authored
allocation failure
-
- 11 Jul, 2013 30 commits
-
-
Victor Stinner authored
Handle PyLong_FromLong() and PyUnicode_FromString() failures
-
Victor Stinner authored
on memory allocation failure Instead of ignoring the memory allocation failure and create invalid objects.
-
Victor Stinner authored
-
Victor Stinner authored
allocating a bigger table failed PyMemoTable destructor does crash if mt_table is NULL.
-
Victor Stinner authored
memory allocation failure Replace also PyMem_Free() with PyMem_FREE() to be consistent with the rest of the function.
-
Victor Stinner authored
fails with an assertion error
-
Victor Stinner authored
exception (when getting NULL) to an assertion to detect bugs earlier
-
Victor Stinner authored
the newly created pickler, and not PyObject_GC_Del().
-
Victor Stinner authored
-
Victor Stinner authored
raised if the result is NULL to help to find bugs in C mode (get the error earlier than the SystemError in ceval.c).
-
Victor Stinner authored
The caller gets an error code and can raise a classic Python exception.
-
Victor Stinner authored
* create_new_element() initializes all attributes before handling errors, to fix a crash in the destructor * create_new_element() calls PyObject_GC_Del() on error, instead of PyObject_Del(), because the object was created by PyObject_GC_New() * subelement() now handles create_new_element() failure * element_getattro() now handles element_get_text() failure * makeuniversal() now handles PyBytes_FromStringAndSize() failure
-
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
-