Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | #18116: getpass no longer always falls back to stdin. | R David Murray | 2013-07-10 | 3 | -52/+70 |
| | | | | | | | | Also fixes a resource warning that occurred when the fallback is taken. Patch by Serhiy Storchaka. (We couldn't figure out how to write tests for this.) | ||||
* | Merge: #18424: PEP8ify the tense of the sum docstring. | R David Murray | 2013-07-10 | 1 | -2/+2 |
|\ | |||||
| * | #18424: PEP8ify the tense of the sum docstring. | R David Murray | 2013-07-10 | 1 | -2/+2 |
| | | |||||
* | | Merge: #18399: fix comment typo. | R David Murray | 2013-07-10 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #18399: fix comment typo. | R David Murray | 2013-07-10 | 1 | -1/+1 |
| | | | | | | | | Patch by Andrew Rowe. | ||||
* | | Issue #18408: Fix call_exc_trace(): if the traceback is NULL, use None when | Victor Stinner | 2013-07-10 | 1 | -3/+8 |
| | | | | | | | | | | | | building the tuple (type, value, traceback) passed to the callback. PyTuple_Pack() does crash if an argument is NULL. | ||||
* | | Issue #18308: don't take the scope ID into account when comparing IPv6 | Charles-François Natali | 2013-07-09 | 1 | -1/+5 |
|\ \ | |/ | | | | | addresses. | ||||
| * | Issue #18308: don't take the scope ID into account when comparing IPv6 | Charles-François Natali | 2013-07-09 | 1 | -1/+5 |
| | | | | | | | | addresses. | ||||
* | | use $(LN) makefile variable instead of ln | Christian Heimes | 2013-07-09 | 1 | -6/+6 |
|\ \ | |/ | |||||
| * | use $(LN) makefile variable instead of ln | Christian Heimes | 2013-07-09 | 1 | -6/+6 |
| | | |||||
* | | Add a spacing saving heuristic to deque's extend methods | Raymond Hettinger | 2013-07-09 | 2 | -2/+18 |
| | | |||||
* | | Issue #18408: Fix select.select() to handle PyList_New() failure (MemoryError) | Victor Stinner | 2013-07-08 | 1 | -3/+3 |
| | | | | | | | | in set2list() | ||||
* | | Issue #18408: Fix _PyMem_DebugRealloc() | Victor Stinner | 2013-07-08 | 1 | -6/+8 |
| | | | | | | | | | | | | | | | | Don't mark old extra memory dead before calling realloc(). realloc() can fail and realloc() must not touch the original buffer on failure. So mark old extra memory dead only on success if the new buffer did not move (has the same address). | ||||
* | | Issue #18408: _PyUnicodeWriter_Finish() now clears its buffer attribute in all | Victor Stinner | 2013-07-08 | 1 | -3/+6 |
| | | | | | | | | cases, so _PyUnicodeWriter_Dealloc() can be called after finish. | ||||
* | | Issue #18408: Fix usage of _PyBytes_Resize() | Victor Stinner | 2013-07-08 | 2 | -31/+16 |
| | | | | | | | | | | _PyBytes_Resize(&v, new_size) sets v to NULL on error, so v cannot be used anymore. Replace "Py_DECREF(v); v = NULL;" with "Py_CLEAR(v);". | ||||
* | | 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 |
|\ \ | |/ |