Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | remove support for compiling on systems without getcwd() | Benjamin Peterson | 2013-08-23 | 1 | -83/+0 |
| | | | | | Do we need a fallback implementation of getcwd() from 1991 that claims to support "really old Unix systems"? I don't think so. | ||||
* | remove unused declaration | Victor Stinner | 2013-08-22 | 1 | -3/+0 |
| | |||||
* | Remove last bit of GNU pth thread | Christian Heimes | 2013-08-17 | 1 | -177/+0 |
| | | | | | | | PEP 11: Name: Systems using --with-pth (GNU pth threads) Unsupported in: Python 3.2 Code removed in: Python 3.3 | ||||
* | Issue #18756: Improve error reporting in os.urandom() when the failure is ↵ | Antoine Pitrou | 2013-08-16 | 1 | -2/+6 |
|\ | | | | | | | due to something else than /dev/urandom not existing. | ||||
| * | Issue #18756: Improve error reporting in os.urandom() when the failure is ↵ | Antoine Pitrou | 2013-08-16 | 1 | -2/+6 |
| | | | | | | | | due to something else than /dev/urandom not existing. | ||||
| * | Issue #15893: Remove dead code | Victor Stinner | 2013-07-27 | 1 | -5/+0 |
| | | |||||
* | | Issue #18722: Remove uses of the "register" keyword in C code. | Antoine Pitrou | 2013-08-13 | 6 | -28/+28 |
| | | |||||
* | | Issue #10241: Clear extension module dict copies at interpreter shutdown. | Antoine Pitrou | 2013-08-11 | 2 | -0/+27 |
| | | | | | | | | | | | | Patch by Neil Schemenauer, minimally modified. (re-apply after fix for tkinter-related crash) | ||||
* | | Issue #16400: Add command line option for isolated mode. | Christian Heimes | 2013-08-10 | 2 | -2/+5 |
| | | | | | | | | | | | | | | | | | | | | -I Run Python in isolated mode. This also implies -E and -s. In isolated mode sys.path contains neither the script?s directory nor the user?s site-packages directory. All PYTHON* environment variables are ignored, too. Further restrictions may be imposed to prevent the user from injecting malicious code. | ||||
* | | Improve verbose reporting of shutdown phase by using the "public" module name | Antoine Pitrou | 2013-08-06 | 1 | -6/+7 |
| | | |||||
* | | Issue #17934: Add a clear() method to frame objects, to help clean up ↵ | Antoine Pitrou | 2013-08-05 | 1 | -0/+2 |
| | | | | | | | | expensive details (local variables) and break reference cycles. | ||||
* | | Backout 62658d9d8926 (issue #10241): it causes a crash at shutdown when ↵ | Antoine Pitrou | 2013-08-02 | 2 | -27/+0 |
| | | | | | | | | deallocating a Tkapp object. | ||||
* | | Issue #10241: Clear extension module dict copies at interpreter shutdown. | Antoine Pitrou | 2013-08-01 | 2 | -0/+27 |
| | | | | | | | | Patch by Neil Schemenauer, minimally modified. | ||||
* | | Issue #18214: Improve finalization of Python modules to avoid setting their ↵ | Antoine Pitrou | 2013-07-31 | 1 | -91/+68 |
| | | | | | | | | globals to None, in most cases. | ||||
* | | Fix style | Antoine Pitrou | 2013-07-30 | 1 | -2/+2 |
| | | |||||
* | | Issue #15893: Improve error handling in main() and Py_FrozenMain() | Victor Stinner | 2013-07-27 | 1 | -16/+23 |
| | | | | | | | | | | | | * handle _PyMem_RawStrdup() failure * Py_FrozenMain() releases memory on error * Py_FrozenMain() duplicates the old locale, as done in main() | ||||
* | | Py_FrozenMain() now uses _Py_char2wchar() to decode command line arguments, as | Victor Stinner | 2013-07-27 | 1 | -18/+4 |
| | | | | | | | | done in main() | ||||
* | | Issue #18203: Replace PyMem_Malloc() with PyMem_RawMalloc() at Python ↵ | Victor Stinner | 2013-07-27 | 1 | -6/+6 |
| | | | | | | | | initialization | ||||
* | | (Merge 3.3) Issue #15893: frozenmain.c now handles PyMem_Malloc() failure | Victor Stinner | 2013-07-27 | 1 | -2/+9 |
|\ \ | |/ | |||||
| * | Issue #15893: frozenmain.c now handles PyMem_Malloc() failure | Victor Stinner | 2013-07-27 | 1 | -2/+9 |
| | | |||||
* | | Issue #18552: Check return value of PyArena_AddPyObject() in obj2ast_object(). | Christian Heimes | 2013-07-27 | 1 | -3/+7 |
|\ \ | |/ | |||||
| * | Issue #18552: Check return value of PyArena_AddPyObject() in obj2ast_object(). | Christian Heimes | 2013-07-27 | 1 | -3/+7 |
| | | |||||
* | | (Merge 3.3) Parser/asdl_c.py: use Py_CLEAR() | Victor Stinner | 2013-07-27 | 35 | -6418/+5979 |
|\ \ | |/ |/| | |||||
| * | (Merge 3.3) According to the PEP 7, C code must "use 4-space indents" | Victor Stinner | 2013-07-27 | 35 | -6420/+5980 |
| |\ | | | | | | | | | | Replace 8 spaces with 4. | ||||
| | * | Issue #18560: Fix potential NULL pointer dereference in sum() | Christian Heimes | 2013-07-26 | 35 | -6420/+5980 |
| | |\ | |||||
| | | * | Fix potential NULL pointer dereferencing in ast module | Christian Heimes | 2013-07-24 | 1 | -1/+1 |
| | | |\ | | | | | | | | | | | | | | | | CID 719690 | ||||
| | | * \ | merge 3.3 | Benjamin Peterson | 2013-07-22 | 1 | -1/+2 |
| | | |\ \ | |||||
| | | * | | | Issue #18520: Fix initstdio(), handle PySys_SetObject() failure | Victor Stinner | 2013-07-22 | 1 | -2/+8 |
| | | | | | | |||||
| | | * | | | Issue #18520: initsite() is a little bit more verbose when import site fails | Victor Stinner | 2013-07-22 | 1 | -0/+1 |
| | | | | | | |||||
| | | * | | | Issue #18520: Fix _PySys_Init(), handle PyDict_SetItemString() errors | Victor Stinner | 2013-07-22 | 1 | -17/+21 |
| | | | | | | |||||
| | | * | | | Issue #18520: PyErr_NoMemory() now fails with a fatal error if it is called | Victor Stinner | 2013-07-22 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | before PyExc_MemoryError has been initialized by _PyExc_Init() | ||||
| | | * | | | Issue #18520: Add a new PyStructSequence_InitType2() function, same than | Victor Stinner | 2013-07-22 | 3 | -10/+22 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PyStructSequence_InitType() except that it has a return value (0 on success, -1 on error). * PyStructSequence_InitType2() now raises MemoryError on memory allocation failure * Fix also some calls to PyDict_SetItemString(): handle error | ||||
| | | * | | | Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0], | Christian Heimes | 2013-07-22 | 35 | -6391/+5922 |
| | | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | prefix and exec_prefix if the operation system does not obey MAXPATHLEN. | ||||
| | | | * \ \ | merge 3.3 | Benjamin Peterson | 2013-07-21 | 1 | -1/+1 |
| | | | |\ \ \ | |||||
| | | | * \ \ \ | merge 3.3 | Benjamin Peterson | 2013-07-21 | 1 | -2/+2 |
| | | | |\ \ \ \ | |||||
| | | | * | | | | | Issue #18520: Fix initsigs(), handle PyOS_InitInterrupts() error | Victor Stinner | 2013-07-21 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PyOS_InitInterrupts() can raise error when importing the signal module | ||||
| | | | * | | | | | Check return value of lseek() in _Py_DisplaySourceLine(). | Christian Heimes | 2013-07-21 | 35 | -6391/+5919 |
| | | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also use portable SEEK_SET instead of 0. CID 1040639 | ||||
| | | | | * \ \ \ \ | Check return value of PyObject_AsFileDescriptor() in _Py_DisplaySourceLine() ↵ | Christian Heimes | 2013-07-21 | 1 | -0/+5 |
| | | | | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for error CID 486768 | ||||
| | | | | * \ \ \ \ \ | Check return value of fstat() in _PyImport_GetDynLoadFunc() | Christian Heimes | 2013-07-20 | 1 | -1/+3 |
| | | | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CID 486250 | ||||
| | | | | * \ \ \ \ \ \ | Add missing check of PyDict_SetItem()'s return value in ↵ | Christian Heimes | 2013-07-20 | 35 | -6391/+5919 |
| | | | | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | _PyImport_FindExtensionObject() CID 486649 | ||||
| | | | | | * \ \ \ \ \ \ | Add missing check of PyDict_SetItem()'s return value in PyEval_EvalCodeEx() | Christian Heimes | 2013-07-20 | 1 | -1/+3 |
| | | | | | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CID 486647 | ||||
| | | | | | * | | | | | | | | Issue #18408: PyEval_EvalFrameEx() and PyEval_CallObjectWithKeywords() now fail | Victor Stinner | 2013-07-18 | 2 | -0/+37 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with an assertion error if they are called with an exception set (PyErr_Occurred()). If these functions are called with an exception set, the exception may be cleared and so the caller looses its exception. Add also assertions to PyEval_CallObjectWithKeywords() and call_function() to check if the function succeed with no exception set, or the function failed with an exception set. | ||||
| | | | | | * | | | | | | | | 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 | ||||
| | | | | | * | | | | | | | | Close #18469: Replace PyDict_GetItemString() with _PyDict_GetItemId() in ↵ | Victor Stinner | 2013-07-17 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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: Handle PyArena_AddPyObject() failure in ast.c | Victor Stinner | 2013-07-17 | 1 | -5/+20 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PyList_Append() (called by PyArena_AddPyObject()) can fail because of a MemoryError for example. | ||||
| | | | | | * | | | | | | | | Issue #18408: Fix PyErr_NormalizeException(), handle PyObject_IsSubclass() ↵ | Victor Stinner | 2013-07-17 | 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-17 | 1 | -3/+6 |
| | | | | | | | | | | | | | | |||||
| | | | | | * | | | | | | | | Issue #18408: handle PySys_GetObject() failure, raise a RuntimeError | Victor Stinner | 2013-07-16 | 2 | -6/+13 |
| | | | | | | | | | | | | | |