Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #18408: Fix PyCode_Optimize(): raise a MemoryError on memory allocation | Victor Stinner | 2013-07-08 | 1 | -2/+6 |
| | | | | failure. | ||||
* | Issue #18408: Fix zlib.compressobj() to handle PyThread_allocate_lock() failure | Victor Stinner | 2013-07-08 | 1 | -0/+4 |
| | | | | (MemoryError). | ||||
* | Issue #18408: Fix ConvParam() of the ctypes module to handle paramfunc failure | Victor Stinner | 2013-07-08 | 1 | -0/+2 |
| | | | | (MemoryError). | ||||
* | Avoid spurious non-fatal install errors for OS X frameworks: | Ned Deily | 2013-07-08 | 1 | -1/+1 |
| | | | | | for a framework install, the python shared library is installed in the frameworkinstallstructure target, not in altbininstall. | ||||
* | Issue #18408: Fix _PyUnicodeWriter_Finish(): clear writer->buffer, | Victor Stinner | 2013-07-08 | 1 | -2/+5 |
| | | | | so _PyUnicodeWriter_Dealloc() can be called on the writer after finish. | ||||
* | fix indentation | Victor Stinner | 2013-07-08 | 1 | -13/+13 |
| | |||||
* | Issue #18408: Fix call_function() of ceval.c to handle PyTuple_New() failure | Victor Stinner | 2013-07-08 | 1 | -4/+9 |
| | | | | (in load_args()), ex: MemoryError. | ||||
* | Issue #18408: Fix PyType_Ready() and type.__bases__ setter to handle | Victor Stinner | 2013-07-08 | 1 | -0/+2 |
| | | | | PyWeakref_NewRef() failure (ex: MemoryError). | ||||
* | Issue #18408: Fix marshal reader for Unicode strings: handle | Victor Stinner | 2013-07-08 | 1 | -0/+4 |
| | | | | PyUnicode_DecodeUTF8() failure (ex: MemoryError). | ||||
* | Issue #18408: Fix list.pop() to handle list_resize() failure (MemoryError). | Victor Stinner | 2013-07-08 | 1 | -2/+4 |
| | |||||
* | Issue #18408: Fix PyDict_New() to handle correctly new_keys_object() failure | Victor Stinner | 2013-07-08 | 1 | -1/+5 |
| | | | | (MemoryError). | ||||
* | Issue #18408: PyObject_GC_NewVar() now raises SystemError exception if nitems | Victor Stinner | 2013-07-08 | 1 | -2/+9 |
| | | | | is negative | ||||
* | gcmodule.c: strip trailing spaces | Victor Stinner | 2013-07-08 | 1 | -7/+7 |
| | |||||
* | #18403: merge with 3.3. | Ezio Melotti | 2013-07-08 | 1 | -1/+1 |
|\ | |||||
| * | #18403: fix an off-by-one typo noticed by Xue Fuqiao. | Ezio Melotti | 2013-07-08 | 1 | -1/+1 |
| | | |||||
* | | Merge str.center tests from 3.3. | Ezio Melotti | 2013-07-08 | 1 | -0/+9 |
|\ \ | |/ | |||||
| * | Add a couple of tests for str.center with non-ASCII chars. | Ezio Melotti | 2013-07-08 | 1 | -0/+9 |
| | | |||||
* | | Issue #18203: Add _PyMem_RawStrdup() and _PyMem_Strdup() | Victor Stinner | 2013-07-07 | 8 | -29/+64 |
| | | | | | | | | | | Replace strdup() with _PyMem_RawStrdup() or _PyMem_Strdup(), depending if the GIL is held or not. | ||||
* | | Issue #18203: Fix _Py_DecodeUTF8_surrogateescape(), use PyMem_RawMalloc() as ↵ | Victor Stinner | 2013-07-07 | 1 | -2/+2 |
| | | | | | | | | _Py_char2wchar() | ||||
* | | Issue #18227: pyexpat now uses a static XML_Memory_Handling_Suite. ↵ | Christian Heimes | 2013-07-07 | 1 | -6/+6 |
| | | | | | | | | cElementTree uses the same approach since at least Python 2.6 | ||||
* | | Issue #18203: Replace malloc() with PyMem_Malloc() in ↵ | Victor Stinner | 2013-07-07 | 1 | -8/+11 |
| | | | | | | | | _PySequence_BytesToCharpArray() | ||||
* | | Issue #18203: Replace malloc() with PyMem_Malloc() to allocate arena objects | Victor Stinner | 2013-07-07 | 1 | -6/+6 |
| | | |||||
* | | Issue #18203: Replace malloc() with PyMem_RawMalloc() to allocate thread locks | Victor Stinner | 2013-07-07 | 2 | -10/+10 |
| | | |||||
* | | Issue #18227: "Free" function of bz2, lzma and zlib modules has no return ↵ | Victor Stinner | 2013-07-07 | 3 | -3/+3 |
| | | | | | | | | value (void) | ||||
* | | Issue #18203: Replace malloc() with PyMem_Malloc() in _ssl for the password | Victor Stinner | 2013-07-07 | 1 | -4/+4 |
| | | |||||
* | | Issue #18227: Use PyMem_RawAlloc() in bz2, lzma and zlib modules | Victor Stinner | 2013-07-07 | 3 | -8/+77 |
| | | |||||
* | | Issue #18203: Fix decode_ascii_surrogateescape(), use PyMem_RawMalloc() as ↵ | Victor Stinner | 2013-07-07 | 1 | -1/+1 |
| | | | | | | | | _Py_char2wchar() | ||||
* | | Fix a compiler warning in posix_sendfile() on FreeBSD: | Victor Stinner | 2013-07-07 | 1 | -2/+3 |
| | | | | | | | | | | Modules/posixmodule.c: In function 'posix_sendfile': Modules/posixmodule.c:7700: warning: ISO C90 forbids mixed declarations and code | ||||
* | | Issue #18203: Replace malloc() with PyMem_Malloc() in Python modules | Victor Stinner | 2013-07-07 | 10 | -55/+52 |
| | | | | | | | | | | Replace malloc() with PyMem_Malloc() when the GIL is held, or with PyMem_RawMalloc() otherwise. | ||||
* | | Issue #18203: Replace malloc() with PyMem_RawMalloc() at Python initialization | Victor Stinner | 2013-07-07 | 8 | -76/+76 |
| | | | | | | | | | | | | | | * Replace malloc() with PyMem_RawMalloc() * Replace PyMem_Malloc() with PyMem_RawMalloc() where the GIL is not held. * _Py_char2wchar() now returns a buffer allocated by PyMem_RawMalloc(), instead of PyMem_Malloc() | ||||
* | | Issue #18203: Fix Py_Finalize(): destroy the GIL after the last call to | Victor Stinner | 2013-07-07 | 1 | -9/+9 |
| | | | | | | | | | | | | | | PyMem_Malloc() or PyObject_Malloc(). For example, PyCFunction_Fini() calls PyObject_GC_Del() which calls PyObject_FREE(). | ||||
* | | Fix #ifdef | Raymond Hettinger | 2013-07-07 | 1 | -1/+1 |
| | | |||||
* | | Use macros for marking and checking endpoints in the doubly-linked list of ↵ | Raymond Hettinger | 2013-07-07 | 1 | -47/+81 |
| | | | | | | | | | | | | | | | | | | | | blocks. * Add comment explaining the endpoint checks * Only do the checks in a debug build * Simplify newblock() to only require a length argument and leave the link updates to the calling code. * Also add comment for the freelisting logic. | ||||
* | | #18106: refactor tests to use subtests and proper assert methods. Patch by ↵ | Ezio Melotti | 2013-07-07 | 1 | -35/+42 |
| | | | | | | | | Vajrasky Kok. | ||||
* | | #17198: merge with 3.3. | Ezio Melotti | 2013-07-07 | 3 | -2/+24 |
|\ \ | |/ | |||||
| * | #17198: Fix a NameError in the dbm module. Patch by Valentina Mukhamedzhanova. | Ezio Melotti | 2013-07-07 | 3 | -2/+24 |
| | | |||||
* | | Merge #18013: Fix cgi.FieldStorage to parse the W3C sample form. | Florent Xicluna | 2013-07-07 | 3 | -1/+49 |
|\ \ | |/ | |||||
| * | Issue #18013: Fix cgi.FieldStorage to parse the W3C sample form. | Florent Xicluna | 2013-07-07 | 3 | -1/+49 |
| | | |||||
* | | #18020: improve html.escape speed by an order of magnitude. Patch by Matt ↵ | Ezio Melotti | 2013-07-07 | 3 | -7/+10 |
| | | | | | | | | Bryant. | ||||
* | | (3.3->default) Issue #18377: Code cleanup in Python Launcher | Ronald Oussoren | 2013-07-07 | 8 | -95/+77 |
|\ \ | |/ | | | | | | | This changeset fixes a number of compiler warnings in the Python Launcher binary for OSX. It also cleans up whitespace usage in those sources. | ||||
| * | Issue #18377: Code cleanup in Python Launcher | Ronald Oussoren | 2013-07-07 | 8 | -95/+77 |
| | | | | | | | | | | This changeset fixes a number of compiler warnings in the Python Launcher binary for OSX. It also cleans up whitespace usage in those sources. | ||||
* | | (3.3->default) Cleanup of documentation change from #17860 | Ronald Oussoren | 2013-07-07 | 2 | -4/+10 |
|\ \ | |/ | | | | | Reformulated the textual change, and applied it to the docstring as well. | ||||
| * | Cleanup of documentation change from #17860 | Ronald Oussoren | 2013-07-07 | 2 | -4/+10 |
| | | | | | | | | Reformulated the textual change, and applied it to the docstring as well. | ||||
* | | merge | Raymond Hettinger | 2013-07-07 | 9 | -239/+802 |
|\ \ | |||||
| * | | Issue #3329: Fix _PyObject_ArenaVirtualFree() | Victor Stinner | 2013-07-07 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | According to VirtualFree() documentation, the size must be zero if the "free type" is MEM_RELEASE. | ||||
| * | | Issue #17206: On Windows, increase the stack size from 2 MB to 4.2 MB to fix | Victor Stinner | 2013-07-07 | 2 | -1/+5 |
| | | | | | | | | | | | | | | | a stack overflow in the marshal module (fix a crash in test_marshal). Patch written by Jeremy Kloth. | ||||
| * | | Issue #3329: Implement the PEP 445 | Victor Stinner | 2013-07-07 | 8 | -238/+797 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new enum: * PyMemAllocatorDomain Add new structures: * PyMemAllocator * PyObjectArenaAllocator Add new functions: * PyMem_RawMalloc(), PyMem_RawRealloc(), PyMem_RawFree() * PyMem_GetAllocator(), PyMem_SetAllocator() * PyObject_GetArenaAllocator(), PyObject_SetArenaAllocator() * PyMem_SetupDebugHooks() Changes: * PyMem_Malloc()/PyObject_Realloc() now always call malloc()/realloc(), instead of calling PyObject_Malloc()/PyObject_Realloc() in debug mode. * PyObject_Malloc()/PyObject_Realloc() now falls back to PyMem_Malloc()/PyMem_Realloc() for allocations larger than 512 bytes. * Redesign debug checks on memory block allocators as hooks, instead of using C macros | ||||
* | | | Improve variable names in deque_count() | Raymond Hettinger | 2013-07-07 | 1 | -8/+8 |
|/ / | |||||
* | | Apply the PyObject_VAR_HEAD and Py_SIZE macros | Raymond Hettinger | 2013-07-06 | 1 | -40/+39 |
| | | | | | | | | to be consistent with practices in other modules. | ||||
* | | merge | Brett Cannon | 2013-07-06 | 1 | -6/+6 |
|\ \ |