Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
|\ \ | |||||
| * | | Refactor deque_traverse(). | Raymond Hettinger | 2013-07-06 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | Hoist conditional expression out of the loop. Use rightblock as the guard instead of checking for NULL. | ||||
* | | | merge for issue #18351. | Brett Cannon | 2013-07-06 | 5 | -807/+843 |
|\ \ \ | |/ / |/| / | |/ | |||||
| * | Issue #18351: Fix various issues with | Brett Cannon | 2013-07-06 | 5 | -3376/+3415 |
| | | | | | | | | | | | | | | | | | | importlib._bootstrap._get_sourcefile(). Thanks to its only use by the C API, it was never properly tested until now. Thanks to Neal Norwitz for discovering the bug and Madison May for the patch. | ||||
* | | Remove unnecessary branches from count() and reverse(). | Raymond Hettinger | 2013-07-06 | 1 | -6/+3 |
| | | |||||
* | | Issue #18364: Stop using the ImportError._not_found hack. | Brett Cannon | 2013-07-06 | 2 | -3556/+3551 |
| | | | | | | | | | | | | The private attribute was leaking out of importlib and led to at least one person noticing it. Switch to another hack which won't leak outside of importlib and is nearly as robust. | ||||
* | | #18380: merge with 3.3. | Ezio Melotti | 2013-07-06 | 3 | -1/+6 |
|\ \ | |/ | |||||
| * | #18380: pass regex flags to the right argument. Patch by Valentina ↵ | Ezio Melotti | 2013-07-06 | 3 | -1/+6 |
| | | | | | | | | Mukhamedzhanova. | ||||
* | | test_ftplib: silence a BytesWarning when checking TypeError | Florent Xicluna | 2013-07-06 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | test_ftplib: silence a BytesWarning when checking TypeError | Florent Xicluna | 2013-07-06 | 1 | -1/+2 |
| | | |||||
* | | (3.3->default) Issue #12990: The "Python Launcher" on OSX could not launch ↵ | Ronald Oussoren | 2013-07-06 | 2 | -1/+7 |
|\ \ | |/ | | | | | python scripts that have paths that include wide characters. | ||||
| * | Issue #12990: The "Python Launcher" on OSX could not launch python scripts ↵ | Ronald Oussoren | 2013-07-06 | 2 | -1/+4 |
| | | | | | | | | that have paths that include wide characters. | ||||
* | | Issue #18375: merge with 3.3 | Florent Xicluna | 2013-07-06 | 2 | -0/+4 |
|\ \ | |/ | |||||
| * | Issue #18375: Assume --randomize when --randseed is used for running the ↵ | Florent Xicluna | 2013-07-06 | 2 | -0/+4 |
| | | | | | | | | testsuite. | ||||
* | | (3.3->default) Issue #17860: explicitly mention that std* streams are opened ↵ | Ronald Oussoren | 2013-07-06 | 1 | -2/+4 |
|\ \ | |/ | | | | | | | | | | | | | | | in binary mode by default. The documentation does mention that the streams are opened in text mode when univeral_newlines is true, but not that that they are opened in binary mode when that argument is false and that seems to confuse at least some users. | ||||
| * | Issue #17860: explicitly mention that std* streams are opened in binary mode ↵ | Ronald Oussoren | 2013-07-06 | 1 | -2/+4 |
| | | | | | | | | | | | | | | | | | | by default. The documentation does mention that the streams are opened in text mode when univeral_newlines is true, but not that that they are opened in binary mode when that argument is false and that seems to confuse at least some users. | ||||
* | | Speed-up deque indexing by changing the deque block length to a power of two. | Raymond Hettinger | 2013-07-06 | 2 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The division and modulo calculation in deque_item() can be compiled to fast bitwise operations when the BLOCKLEN is a power of two. Timing before: ~/cpython $ py -m timeit -r7 -s 'from collections import deque' -s 'd=deque(range(10))' 'd[5]' 10000000 loops, best of 7: 0.0627 usec per loop Timing after: ~/cpython $ py -m timeit -r7 -s 'from collections import deque' -s 'd=deque(range(10))' 'd[5]' 10000000 loops, best of 7: 0.0581 usec per loop | ||||
* | | Issue #18347: ElementTree's html serializer now preserves the case of ↵ | Christian Heimes | 2013-07-04 | 3 | -3/+13 |
|\ \ | |/ | | | | | closing tags. | ||||
| * | Issue #18347: ElementTree's html serializer now preserves the case of ↵ | Christian Heimes | 2013-07-04 | 3 | -3/+13 |
| | | | | | | | | closing tags. |