summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* #18116: getpass no longer always falls back to stdin.R David Murray2013-07-103-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 Murray2013-07-101-2/+2
|\
| * #18424: PEP8ify the tense of the sum docstring.R David Murray2013-07-101-2/+2
| |
* | Merge: #18399: fix comment typo.R David Murray2013-07-101-1/+1
|\ \ | |/
| * #18399: fix comment typo.R David Murray2013-07-101-1/+1
| | | | | | | | Patch by Andrew Rowe.
* | Issue #18408: Fix call_exc_trace(): if the traceback is NULL, use None whenVictor Stinner2013-07-101-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 IPv6Charles-François Natali2013-07-091-1/+5
|\ \ | |/ | | | | addresses.
| * Issue #18308: don't take the scope ID into account when comparing IPv6Charles-François Natali2013-07-091-1/+5
| | | | | | | | addresses.
* | use $(LN) makefile variable instead of lnChristian Heimes2013-07-091-6/+6
|\ \ | |/
| * use $(LN) makefile variable instead of lnChristian Heimes2013-07-091-6/+6
| |
* | Add a spacing saving heuristic to deque's extend methodsRaymond Hettinger2013-07-092-2/+18
| |
* | Issue #18408: Fix select.select() to handle PyList_New() failure (MemoryError)Victor Stinner2013-07-081-3/+3
| | | | | | | | in set2list()
* | Issue #18408: Fix _PyMem_DebugRealloc()Victor Stinner2013-07-081-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 allVictor Stinner2013-07-081-3/+6
| | | | | | | | cases, so _PyUnicodeWriter_Dealloc() can be called after finish.
* | Issue #18408: Fix usage of _PyBytes_Resize()Victor Stinner2013-07-082-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 allocationVictor Stinner2013-07-081-2/+6
| | | | | | | | failure.
* | Issue #18408: Fix zlib.compressobj() to handle PyThread_allocate_lock() failureVictor Stinner2013-07-081-0/+4
| | | | | | | | (MemoryError).
* | Issue #18408: Fix ConvParam() of the ctypes module to handle paramfunc failureVictor Stinner2013-07-081-0/+2
| | | | | | | | (MemoryError).
* | Avoid spurious non-fatal install errors for OS X frameworks:Ned Deily2013-07-081-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 Stinner2013-07-081-2/+5
| | | | | | | | so _PyUnicodeWriter_Dealloc() can be called on the writer after finish.
* | fix indentationVictor Stinner2013-07-081-13/+13
| |
* | Issue #18408: Fix call_function() of ceval.c to handle PyTuple_New() failureVictor Stinner2013-07-081-4/+9
| | | | | | | | (in load_args()), ex: MemoryError.
* | Issue #18408: Fix PyType_Ready() and type.__bases__ setter to handleVictor Stinner2013-07-081-0/+2
| | | | | | | | PyWeakref_NewRef() failure (ex: MemoryError).
* | Issue #18408: Fix marshal reader for Unicode strings: handleVictor Stinner2013-07-081-0/+4
| | | | | | | | PyUnicode_DecodeUTF8() failure (ex: MemoryError).
* | Issue #18408: Fix list.pop() to handle list_resize() failure (MemoryError).Victor Stinner2013-07-081-2/+4
| |
* | Issue #18408: Fix PyDict_New() to handle correctly new_keys_object() failureVictor Stinner2013-07-081-1/+5
| | | | | | | | (MemoryError).
* | Issue #18408: PyObject_GC_NewVar() now raises SystemError exception if nitemsVictor Stinner2013-07-081-2/+9
| | | | | | | | is negative
* | gcmodule.c: strip trailing spacesVictor Stinner2013-07-081-7/+7
| |
* | #18403: merge with 3.3.Ezio Melotti2013-07-081-1/+1
|\ \ | |/
| * #18403: fix an off-by-one typo noticed by Xue Fuqiao.Ezio Melotti2013-07-081-1/+1
| |
* | Merge str.center tests from 3.3.Ezio Melotti2013-07-081-0/+9
|\ \ | |/
| * Add a couple of tests for str.center with non-ASCII chars.Ezio Melotti2013-07-081-0/+9
| |
* | Issue #18203: Add _PyMem_RawStrdup() and _PyMem_Strdup()Victor Stinner2013-07-078-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 Stinner2013-07-071-2/+2
| | | | | | | | _Py_char2wchar()
* | Issue #18227: pyexpat now uses a static XML_Memory_Handling_Suite. ↵Christian Heimes2013-07-071-6/+6
| | | | | | | | cElementTree uses the same approach since at least Python 2.6
* | Issue #18203: Replace malloc() with PyMem_Malloc() in ↵Victor Stinner2013-07-071-8/+11
| | | | | | | | _PySequence_BytesToCharpArray()
* | Issue #18203: Replace malloc() with PyMem_Malloc() to allocate arena objectsVictor Stinner2013-07-071-6/+6
| |
* | Issue #18203: Replace malloc() with PyMem_RawMalloc() to allocate thread locksVictor Stinner2013-07-072-10/+10
| |
* | Issue #18227: "Free" function of bz2, lzma and zlib modules has no return ↵Victor Stinner2013-07-073-3/+3
| | | | | | | | value (void)
* | Issue #18203: Replace malloc() with PyMem_Malloc() in _ssl for the passwordVictor Stinner2013-07-071-4/+4
| |
* | Issue #18227: Use PyMem_RawAlloc() in bz2, lzma and zlib modulesVictor Stinner2013-07-073-8/+77
| |
* | Issue #18203: Fix decode_ascii_surrogateescape(), use PyMem_RawMalloc() as ↵Victor Stinner2013-07-071-1/+1
| | | | | | | | _Py_char2wchar()
* | Fix a compiler warning in posix_sendfile() on FreeBSD:Victor Stinner2013-07-071-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 modulesVictor Stinner2013-07-0710-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 initializationVictor Stinner2013-07-078-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 toVictor Stinner2013-07-071-9/+9
| | | | | | | | | | | | | | PyMem_Malloc() or PyObject_Malloc(). For example, PyCFunction_Fini() calls PyObject_GC_Del() which calls PyObject_FREE().
* | Fix #ifdefRaymond Hettinger2013-07-071-1/+1
| |
* | Use macros for marking and checking endpoints in the doubly-linked list of ↵Raymond Hettinger2013-07-071-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 Melotti2013-07-071-35/+42
| | | | | | | | Vajrasky Kok.
* | #17198: merge with 3.3.Ezio Melotti2013-07-073-2/+24
|\ \ | |/