summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* longobject.c: add an assertion to ensure that MEDIUM_VALUE() is only called onVictor Stinner2013-07-171-1/+2
| | | | small integers (0 or 1 digit)
* Issue #18408: Rewrite NEGATE() macro in longobject.c to handle ↵Victor Stinner2013-07-171-24/+51
| | | | PyLong_FromLong() failure
* Issue #18408: Fix PyType_Ready(), handle _PyDict_SetItemId() failureVictor Stinner2013-07-171-3/+7
|
* Issue #18408: Fix Py_ReprEnter(), handle PyList_Append() failureVictor Stinner2013-07-171-1/+2
|
* Issue #18408: Fix listpop(), handle list_ass_slice() failureVictor Stinner2013-07-171-6/+4
|
* Issue #18408: Fix PyErr_SetImportError(), handle PyDict_SetItemString() failureVictor Stinner2013-07-171-2/+5
|
* Issue #18408: Fix _PyImport_LoadDynamicModule(), handle ↵Victor Stinner2013-07-171-0/+2
| | | | PyUnicode_FromFormat() failure
* Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set ↵Victor Stinner2013-07-171-1/+1
| | | | value to NULL
* Issue #18408: Fix heapq.heappop(), handle PyList_SetSlice() failureVictor Stinner2013-07-171-1/+4
|
* Issue #18408: Fix time.tzset(), detect exception when calling PyInit_timezone()Victor Stinner2013-07-171-0/+2
|
* Issue #18408: Fix structseq_reduce(), handle PyDict_SetItemString() failureVictor Stinner2013-07-171-11/+13
|
* Issue #18266: test_largefile now works with unittest test discovery andSerhiy Storchaka2013-07-172-63/+54
|\ | | | | | | supports running only selected tests. Patch by Zachary Ware.
| * Issue #18266: test_largefile now works with unittest test discovery andSerhiy Storchaka2013-07-172-63/+54
| | | | | | | | supports running only selected tests. Patch by Zachary Ware.
* | Issue #17767: test_locale now works with unittest test discovery.Serhiy Storchaka2013-07-172-58/+39
|\ \ | |/ | | | | Original patch by Zachary Ware.
| * Issue #17767: test_locale now works with unittest test discovery.Serhiy Storchaka2013-07-172-58/+39
| | | | | | | | Original patch by Zachary Ware.
* | Close #18469: Replace PyDict_GetItemString() with _PyDict_GetItemId() in ↵Victor Stinner2013-07-162-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/NEWSVictor Stinner2013-07-161-0/+3
| |
* | Issue #18408: Handle PyArena_AddPyObject() failure in ast.cVictor Stinner2013-07-161-5/+20
| | | | | | | | | | PyList_Append() (called by PyArena_AddPyObject()) can fail because of a MemoryError for example.
* | Issue #18408: Fix locale.localeconv(), handle PyDict_SetItemString() failureVictor Stinner2013-07-161-16/+20
| |
* | Issue #18408: Fix PyErr_NormalizeException(), handle PyObject_IsSubclass() ↵Victor Stinner2013-07-161-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 Stinner2013-07-162-6/+12
| |
* | Issue #18408: Fix typo in build_node_tree() of the parser moduleVictor Stinner2013-07-161-1/+1
| | | | | | | | Type "o" format of Py_BuildValue() is invalid: it must be "O".
* | Cleanup type_call() to ease debugVictor Stinner2013-07-161-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 RuntimeErrorVictor Stinner2013-07-164-9/+22
| |
* | Issue #18408: Py_ReprLeave() now saves/restores the current exception,Victor Stinner2013-07-161-2/+11
| | | | | | | | and ignores exceptions raised during the call
* | Issue #18408: dict_new() now fails on new_keys_object() errorVictor Stinner2013-07-161-10/+9
| | | | | | | | Pass the MemoryError exception to the caller, instead of using empty keys.
* | Cleanup dictobject.cVictor Stinner2013-07-161-17/+19
| |
* | Issue #18408: Fix PyDict_GetItemString(), suppress PyUnicode_FromString() errorVictor Stinner2013-07-161-1/+3
| | | | | | | | | | As PyDict_GetItem(), PyDict_GetItemString() suppresses all errors that may occur for historical reasons.
* | Issue #18408: Fix list.extend(), handle list_resize() failureVictor Stinner2013-07-161-2/+4
| |
* | Issue #18408: Fix cjkcodecs decoders, add a new MBERR_EXCEPTION constant toVictor Stinner2013-07-163-2/+5
| | | | | | | | notify exceptions raised by the _PyUnicodeWriter API
* | Issue #18408: Fix fileio_read() on _PyBytes_Resize() failureVictor Stinner2013-07-161-1/+1
| | | | | | | | bytes is NULL on _PyBytes_Resize() failure
* | Issue #18448: Fix a typo in Tools/demo/eiffel.py.Serhiy Storchaka2013-07-162-1/+3
|\ \ | |/
| * Issue #18448: Fix a typo in Tools/demo/eiffel.py.Serhiy Storchaka2013-07-162-1/+3
| |
* | Issue #18457: Fixed saving of formulas and complex numbers in Tools/demo/ss1.py.Serhiy Storchaka2013-07-162-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 Storchaka2013-07-162-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 Murray2013-07-161-0/+4
|\ \ | |/
| * Closes #18475: add unittest.main() to test_email/test_inversions.R David Murray2013-07-161-0/+4
| | | | | | | | Patch by Vajrasky Kok.
* | Issue #17778: Fix test discovery for test_multiprocessing. (Patch byRichard Oudkerk2013-07-162-31/+10
|\ \ | |/ | | | | Zachary Ware.)
| * Issue #17778: Fix test discovery for test_multiprocessing. (Patch byRichard Oudkerk2013-07-162-122/+107
| | | | | | | | Zachary Ware.)
* | Also remove a (broken) leaker test for the code removed in issue #18393.Ronald Oussoren2013-07-161-14/+0
| |
* | merge 3.3Benjamin Peterson2013-07-161-1/+2
|\ \ | |/
| * move declaration to top of blockBenjamin Peterson2013-07-161-1/+2
| |
* | merge 3.3 (closes #18470)Benjamin Peterson2013-07-161-36/+46
|\ \ | |/
| * check the return value of new_string() (closes #18470)Benjamin Peterson2013-07-161-36/+46
| |
* | Closes #18471: Fix typo in heapq documentation (reported by François Pinard).Ned Deily2013-07-161-1/+1
|\ \ | |/
| * Issue #18471: Fix typo in heapq documentation (reported by François Pinard).Ned Deily2013-07-161-1/+1
| |
* | Issue #18408: Fix show_warning(), clear also the exception raised byVictor Stinner2013-07-151-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 bugsVictor Stinner2013-07-152-2/+5
| | | | | | | | earlier
* | Issue #18408: Fix _Py_DisplaySourceLine()Victor Stinner2013-07-151-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 MemoryErrorVictor Stinner2013-07-151-1/+4
| | | | | | | | | | Don't pass a NULL traceback to PyException_SetTraceback(): pass Py_None. Passing NULL would raise a new exception.