- 12 Tem, 2013 4 kayıt (commit)
-
-
Brett Cannon yazdı
...`` 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 yazdı
constants in importlib._bootstrap. Along the way clean up from string interpolation to use the repr explicitly. Initial patch by Madison May.
-
Victor Stinner yazdı
* Use Py_DECREF() instead of PyObject_GC_Del() to release correctly all resources * Raise MemoryError on memory allocation failure
-
Victor Stinner yazdı
allocation failure
-
- 11 Tem, 2013 36 kayıt (commit)
-
-
Victor Stinner yazdı
Handle PyLong_FromLong() and PyUnicode_FromString() failures
-
Victor Stinner yazdı
on memory allocation failure Instead of ignoring the memory allocation failure and create invalid objects.
-
Victor Stinner yazdı
-
Victor Stinner yazdı
allocating a bigger table failed PyMemoTable destructor does crash if mt_table is NULL.
-
Victor Stinner yazdı
memory allocation failure Replace also PyMem_Free() with PyMem_FREE() to be consistent with the rest of the function.
-
Victor Stinner yazdı
fails with an assertion error
-
Victor Stinner yazdı
exception (when getting NULL) to an assertion to detect bugs earlier
-
Victor Stinner yazdı
the newly created pickler, and not PyObject_GC_Del().
-
Victor Stinner yazdı
-
Victor Stinner yazdı
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 yazdı
The caller gets an error code and can raise a classic Python exception.
-
Victor Stinner yazdı
* 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 yazdı
-
Victor Stinner yazdı
-
Victor Stinner yazdı
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 yazdı
The caller gets an error code and can raise a classic Python exception.
-
Victor Stinner yazdı
-
Victor Stinner yazdı
If an attribute is not initialized, the destructor can crash
-
Victor Stinner yazdı
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 yazdı
-
R David Murray yazdı
-
R David Murray yazdı
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 yazdı
more bytes than requested.
-
Serhiy Storchaka yazdı
more bytes than requested.
-
Serhiy Storchaka yazdı
-
Serhiy Storchaka yazdı
-
Serhiy Storchaka yazdı
do with byte strings. Added tests for Tcl.split() and Tcl.splitline().
-
Serhiy Storchaka yazdı
do with byte strings. Added tests for Tcl.split() and Tcl.splitline().
-
Serhiy Storchaka yazdı
not to stderr. Patch by Berker Peksag and Michael Dickens.
-
R David Murray yazdı
-
R David Murray yazdı
Patch by Dmi Baranov.
-
Serhiy Storchaka yazdı
-
Serhiy Storchaka yazdı
-
Serhiy Storchaka yazdı
-
Serhiy Storchaka yazdı
-
Christian Heimes yazdı
-