Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | longobject.c: add an assertion to ensure that MEDIUM_VALUE() is only called on | Victor Stinner | 2013-07-17 | 1 | -1/+2 |
| | | | | small integers (0 or 1 digit) | ||||
* | Issue #18408: Rewrite NEGATE() macro in longobject.c to handle ↵ | Victor Stinner | 2013-07-17 | 1 | -24/+51 |
| | | | | PyLong_FromLong() failure | ||||
* | Issue #18408: Fix PyType_Ready(), handle _PyDict_SetItemId() failure | Victor Stinner | 2013-07-17 | 1 | -3/+7 |
| | |||||
* | Issue #18408: Fix Py_ReprEnter(), handle PyList_Append() failure | Victor Stinner | 2013-07-17 | 1 | -1/+2 |
| | |||||
* | Issue #18408: Fix listpop(), handle list_ass_slice() failure | Victor Stinner | 2013-07-17 | 1 | -6/+4 |
| | |||||
* | Issue #18408: Fix PyErr_SetImportError(), handle PyDict_SetItemString() failure | Victor Stinner | 2013-07-17 | 1 | -2/+5 |
| | |||||
* | Issue #18408: Fix _PyImport_LoadDynamicModule(), handle ↵ | Victor Stinner | 2013-07-17 | 1 | -0/+2 |
| | | | | PyUnicode_FromFormat() failure | ||||
* | Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set ↵ | Victor Stinner | 2013-07-17 | 1 | -1/+1 |
| | | | | value to NULL | ||||
* | Issue #18408: Fix heapq.heappop(), handle PyList_SetSlice() failure | Victor Stinner | 2013-07-17 | 1 | -1/+4 |
| | |||||
* | Issue #18408: Fix time.tzset(), detect exception when calling PyInit_timezone() | Victor Stinner | 2013-07-17 | 1 | -0/+2 |
| | |||||
* | Issue #18408: Fix structseq_reduce(), handle PyDict_SetItemString() failure | Victor Stinner | 2013-07-17 | 1 | -11/+13 |
| | |||||
* | Issue #18266: test_largefile now works with unittest test discovery and | Serhiy Storchaka | 2013-07-17 | 2 | -63/+54 |
|\ | | | | | | | supports running only selected tests. Patch by Zachary Ware. | ||||
| * | Issue #18266: test_largefile now works with unittest test discovery and | Serhiy Storchaka | 2013-07-17 | 2 | -63/+54 |
| | | | | | | | | supports running only selected tests. Patch by Zachary Ware. | ||||
* | | Issue #17767: test_locale now works with unittest test discovery. | Serhiy Storchaka | 2013-07-17 | 2 | -58/+39 |
|\ \ | |/ | | | | | Original patch by Zachary Ware. | ||||
| * | Issue #17767: test_locale now works with unittest test discovery. | Serhiy Storchaka | 2013-07-17 | 2 | -58/+39 |
| | | | | | | | | Original patch by Zachary Ware. | ||||
* | | Close #18469: Replace PyDict_GetItemString() with _PyDict_GetItemId() in ↵ | Victor Stinner | 2013-07-16 | 2 | -5/+23 |
| | | | | | | | | | | | | | | | | | | | | | | | | structseq.c _PyDict_GetItemId() is more efficient: it only builds the Unicode string once. Identifiers (dictionary keys) are now created at Python initialization, and if the creation failed, Python does exit with a fatal error. Before, PyDict_GetItemString() failure was not handled: structseq_new() could call PyObject_GC_NewVar() with a negative size, and structseq_dealloc() could also crash. | ||||
* | | Issue #18408: Mention changes in Misc/NEWS | Victor Stinner | 2013-07-16 | 1 | -0/+3 |
| | | |||||
* | | Issue #18408: Handle PyArena_AddPyObject() failure in ast.c | Victor Stinner | 2013-07-16 | 1 | -5/+20 |
| | | | | | | | | | | PyList_Append() (called by PyArena_AddPyObject()) can fail because of a MemoryError for example. | ||||
* | | Issue #18408: Fix locale.localeconv(), handle PyDict_SetItemString() failure | Victor Stinner | 2013-07-16 | 1 | -16/+20 |
| | | |||||
* | | Issue #18408: Fix PyErr_NormalizeException(), handle PyObject_IsSubclass() ↵ | Victor Stinner | 2013-07-16 | 1 | -1/+10 |
| | | | | | | | | | | | | failure PyObject_IsSubclass() can fail and raise a new exception! | ||||
* | | Issue #18408: Fix Python-ast.c: handle init_types() failure (ex: MemoryError) | Victor Stinner | 2013-07-16 | 2 | -6/+12 |
| | | |||||
* | | Issue #18408: Fix typo in build_node_tree() of the parser module | Victor Stinner | 2013-07-16 | 1 | -1/+1 |
| | | | | | | | | Type "o" format of Py_BuildValue() is invalid: it must be "O". | ||||
* | | Cleanup type_call() to ease debug | Victor Stinner | 2013-07-16 | 1 | -4/+6 |
| | | | | | | | | | | | | It was easy to miss the call to type->tp_init because it was done in a long conditional expression. Split the long expression in multiple lines to make the debug step by step easier. | ||||
* | | Issue #18408: handle PySys_GetObject() failure, raise a RuntimeError | Victor Stinner | 2013-07-16 | 4 | -9/+22 |
| | | |||||
* | | Issue #18408: Py_ReprLeave() now saves/restores the current exception, | Victor Stinner | 2013-07-16 | 1 | -2/+11 |
| | | | | | | | | and ignores exceptions raised during the call | ||||
* | | Issue #18408: dict_new() now fails on new_keys_object() error | Victor Stinner | 2013-07-16 | 1 | -10/+9 |
| | | | | | | | | Pass the MemoryError exception to the caller, instead of using empty keys. | ||||
* | | Cleanup dictobject.c | Victor Stinner | 2013-07-16 | 1 | -17/+19 |
| | | |||||
* | | Issue #18408: Fix PyDict_GetItemString(), suppress PyUnicode_FromString() error | Victor Stinner | 2013-07-16 | 1 | -1/+3 |
| | | | | | | | | | | As PyDict_GetItem(), PyDict_GetItemString() suppresses all errors that may occur for historical reasons. | ||||
* | | Issue #18408: Fix list.extend(), handle list_resize() failure | Victor Stinner | 2013-07-16 | 1 | -2/+4 |
| | | |||||
* | | Issue #18408: Fix cjkcodecs decoders, add a new MBERR_EXCEPTION constant to | Victor Stinner | 2013-07-16 | 3 | -2/+5 |
| | | | | | | | | notify exceptions raised by the _PyUnicodeWriter API | ||||
* | | Issue #18408: Fix fileio_read() on _PyBytes_Resize() failure | Victor Stinner | 2013-07-16 | 1 | -1/+1 |
| | | | | | | | | bytes is NULL on _PyBytes_Resize() failure | ||||
* | | Issue #18448: Fix a typo in Tools/demo/eiffel.py. | Serhiy Storchaka | 2013-07-16 | 2 | -1/+3 |
|\ \ | |/ | |||||
| * | Issue #18448: Fix a typo in Tools/demo/eiffel.py. | Serhiy Storchaka | 2013-07-16 | 2 | -1/+3 |
| | | |||||
* | | Issue #18457: Fixed saving of formulas and complex numbers in Tools/demo/ss1.py. | Serhiy Storchaka | 2013-07-16 | 2 | -34/+21 |
|\ \ | |/ | | | | | | | Useed context managers for file I/O. Removed out-of-dated code and misleading comments. | ||||
| * | Issue #18457: Fixed saving of formulas and complex numbers in Tools/demo/ss1.py. | Serhiy Storchaka | 2013-07-16 | 2 | -34/+21 |
| | | | | | | | | | | Useed context managers for file I/O. Removed out-of-dated code and misleading comments. | ||||
* | | Merge: Closes #18475: add unittest.main() to test_email/test_inversions. | R David Murray | 2013-07-16 | 1 | -0/+4 |
|\ \ | |/ | |||||
| * | Closes #18475: add unittest.main() to test_email/test_inversions. | R David Murray | 2013-07-16 | 1 | -0/+4 |
| | | | | | | | | Patch by Vajrasky Kok. | ||||
* | | Issue #17778: Fix test discovery for test_multiprocessing. (Patch by | Richard Oudkerk | 2013-07-16 | 2 | -31/+10 |
|\ \ | |/ | | | | | Zachary Ware.) | ||||
| * | Issue #17778: Fix test discovery for test_multiprocessing. (Patch by | Richard Oudkerk | 2013-07-16 | 2 | -122/+107 |
| | | | | | | | | Zachary Ware.) | ||||
* | | Also remove a (broken) leaker test for the code removed in issue #18393. | Ronald Oussoren | 2013-07-16 | 1 | -14/+0 |
| | | |||||
* | | merge 3.3 | Benjamin Peterson | 2013-07-16 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | move declaration to top of block | Benjamin Peterson | 2013-07-16 | 1 | -1/+2 |
| | | |||||
* | | merge 3.3 (closes #18470) | Benjamin Peterson | 2013-07-16 | 1 | -36/+46 |
|\ \ | |/ | |||||
| * | check the return value of new_string() (closes #18470) | Benjamin Peterson | 2013-07-16 | 1 | -36/+46 |
| | | |||||
* | | Closes #18471: Fix typo in heapq documentation (reported by François Pinard). | Ned Deily | 2013-07-16 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #18471: Fix typo in heapq documentation (reported by François Pinard). | Ned Deily | 2013-07-16 | 1 | -1/+1 |
| | | |||||
* | | Issue #18408: Fix show_warning(), clear also the exception raised by | Victor Stinner | 2013-07-15 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | _Py_DisplaySourceLine() For example, _PyGC_DumpShutdownStats() calls PyErr_WarnExplicitFormat() while the import machinery does not work anymore, _Py_DisplaySourceLine() fails when trying to import the io module. | ||||
* | | Issue #18408: add more assertions on PyErr_Occurred() in ceval.c to detect bugs | Victor Stinner | 2013-07-15 | 2 | -2/+5 |
| | | | | | | | | earlier | ||||
* | | Issue #18408: Fix _Py_DisplaySourceLine() | Victor Stinner | 2013-07-15 | 1 | -1/+3 |
| | | | | | | | | | | Report _Py_FindSourceFile() error, so the error is cleared; and clear io.open(filename) exception on failure. | ||||
* | | Issue #18408: Fix PyEval_EvalFrameEx() for MemoryError | Victor Stinner | 2013-07-15 | 1 | -1/+4 |
| | | | | | | | | | | Don't pass a NULL traceback to PyException_SetTraceback(): pass Py_None. Passing NULL would raise a new exception. |