summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* backout 0fb7789b5eeb for test breakage (#20578)Benjamin Peterson2014-06-081-61/+6
|
* add BufferedIOBase.readinto1 (closes #20578)Benjamin Peterson2014-06-081-6/+61
| | | | Patch by Nikolaus Rath.
* All modern compilers provide a offsetof() functionVictor Stinner2014-06-031-4/+0
| | | | offsetof() is used directly in many other .c files without any issue.
* Issue #21233: Rename the C structure "PyMemAllocator" to "PyMemAllocatorEx" toVictor Stinner2014-06-022-13/+13
| | | | | make sure that the code using it will be adapted for the new "calloc" field (instead of crashing).
* Issue #21639: Fix a division by zero in tracemalloc on calloc(0, 0). TheVictor Stinner2014-06-021-1/+1
|\ | | | | | | | | | | | | regression was introduced recently with the introduction of the new "calloc" functions (PyMem_RawCalloc, PyMem_Calloc, PyObject_Calloc). Add also a unit test to check for the non-regression.
* \ (Merge 3.4) Issue #21639: Fix name of _testcapi test functionsVictor Stinner2014-06-021-2/+2
|\ \ | |/
| * Issue #21639: Fix name of _testcapi test functionsVictor Stinner2014-06-021-2/+2
| |
* | Issue #17095: Fix Modules/Setup *shared* support.Ned Deily2014-06-022-6/+16
|\ \ | |/ | | | | Original patch by Thomas Wouters.
| * Issue #17095: Fix Modules/Setup *shared* support.Ned Deily2014-06-022-6/+16
| | | | | | | | Original patch by Thomas Wouters.
* | merge the end_fd comment fix and explicit wait() for the child.Gregory P. Smith2014-06-011-2/+2
|\ \ | |/
| * Fix the comment to not refer to the removed end_fd parameter.Gregory P. Smith2014-06-011-2/+2
| |
* | Don't restrict ourselves to a "max" fd when closing fds before exec()Gregory P. Smith2014-06-011-43/+44
|\ \ | |/ | | | | | | | | | | | | | | when we have a way to get an actual list of all open fds from the OS. Fixes issue #21618: The subprocess module would ignore fds that were inherited by the calling process and already higher than POSIX resource limits would otherwise allow. On systems with a functioning /proc/self/fd or /dev/fd interface the max is now ignored and all fds are closed.
| * Don't restrict ourselves to a "max" fd when closing fds before exec()Gregory P. Smith2014-06-011-43/+44
| | | | | | | | | | | | | | | | | | when we have a way to get an actual list of all open fds from the OS. Fixes issue #21618: The subprocess module would ignore fds that were inherited by the calling process and already higher than POSIX resource limits would otherwise allow. On systems with a functioning /proc/self/fd or /dev/fd interface the max is now ignored and all fds are closed.
* | Issue #21552: Fixed possible integer overflow of too long string lengths inSerhiy Storchaka2014-05-301-1/+35
|\ \ | |/ | | | | the tkinter module on 64-bit platforms.
| * Issue #21552: Fixed possible integer overflow of too long string lengths inSerhiy Storchaka2014-05-301-1/+35
| | | | | | | | the tkinter module on 64-bit platforms.
* | Issue #3015: _tkinter.create() now creates tkapp object with wantobject=1 bySerhiy Storchaka2014-05-281-1/+1
| | | | | | | | default.
* | Issue #10203: sqlite3.Row now truly supports sequence protocol. In particulrSerhiy Storchaka2014-05-281-2/+22
|\ \ | |/ | | | | it supports reverse() and negative indices. Original patch by Claudiu Popa.
| * Issue #10203: sqlite3.Row now truly supports sequence protocol. In particulrSerhiy Storchaka2014-05-281-2/+22
| | | | | | | | it supports reverse() and negative indices. Original patch by Claudiu Popa.
* | Issue 21137: Better repr for threading.Lock()Raymond Hettinger2014-05-261-3/+12
| |
* | Cleanup other stats formatting code in gcmodule.cAntoine Pitrou2014-05-241-5/+3
| |
* | Issue #21555: simplify code in gcmodule.c by using the pytime.h functions ↵Antoine Pitrou2014-05-241-41/+9
| | | | | | | | | | | | instead of trying to call time.time() via the C API. Patch by Geoffrey Spear.
* | Issue #21455: Add a default backlog to socket.listen().Charles-François Natali2014-05-221-10/+12
| |
* | Issue #21525: Most Tkinter methods which accepted tuples now accept lists too.Serhiy Storchaka2014-05-211-33/+40
| |
* | Add comment and make minor code clean-up to improve clarity.Raymond Hettinger2014-05-181-3/+13
| |
* | merge 3.4 (#10744)Benjamin Peterson2014-05-173-11/+61
|\ \ | |/
| * support pep 3118 format strings for ctypes objects with nontrivial shapes ↵Benjamin Peterson2014-05-173-11/+61
| | | | | | | | | | | | (closes #10744) Patch by Matti Picus.
* | Issue #20998: Fixed re.fullmatch() of repeated single character patternSerhiy Storchaka2014-05-143-19/+17
|\ \ | |/ | | | | with ignore case. Original patch by Matthew Barnett.
| * Issue #20998: Fixed re.fullmatch() of repeated single character patternSerhiy Storchaka2014-05-143-19/+17
| | | | | | | | with ignore case. Original patch by Matthew Barnett.
* | Issue #21490: Add new C macros: Py_ABS() and Py_STRINGIFY()Victor Stinner2014-05-143-11/+5
| | | | | | | | | | Keep _Py_STRINGIZE() in PC/pyconfig.h to not introduce a dependency between pyconfig.h and pymacros.h.
* | (Merge 3.4) Issue #21497: faulthandler functions now raise a better error ifVictor Stinner2014-05-141-0/+4
|\ \ | |/ | | | | | | sys.stderr is None: RuntimeError("sys.stderr is None") instead of AttributeError("'NoneType' object has no attribute 'fileno'").
| * Issue #21497: faulthandler functions now raise a better error if sys.stderr isVictor Stinner2014-05-141-0/+4
| | | | | | | | | | None: RuntimeError("sys.stderr is None") instead of AttributeError("'NoneType' object has no attribute 'fileno'").
| * Backed out changeset 6ceedbd88b5fVictor Stinner2014-05-141-10/+6
| |
| * Issue #21488: Add support of keyword arguments for codecs.encode and ↵Victor Stinner2014-05-141-6/+10
| | | | | | | | codecs.decode
* | Issue #21488: Add support of keyword arguments for codecs.encode and ↵Victor Stinner2014-05-141-6/+10
| | | | | | | | codecs.decode
* | merge 3.4Benjamin Peterson2014-05-111-1/+1
|\ \ | |/
| * use logical rather than bit andBenjamin Peterson2014-05-111-1/+1
| |
* | Issue 21424: Apply the nlargest() optimizations to nsmallest() as well.Raymond Hettinger2014-05-111-73/+19
| |
* | Issue #21424: Optimize heaqp.nlargest() to make fewer tuple comparisons.Raymond Hettinger2014-05-111-85/+0
| | | | | | | | | | | | | | | | | | | | | | Consolidates the logic for nlargest() into a single function so that decoration tuples (elem,order) or (key, order, elem) only need to be formed when a new element is added to the heap. Formerly, a tuple was created for every element regardless of whether it was added to the heap. The change reduces the number of tuples created, the number of ordering integers created, and total number of tuple comparisons.
* | Merge from 3.4.Tim Peters2014-05-081-11/+23
|\ \ | |/ | | | | | | | | Issue #21435: Segfault in gc with cyclic trash Changed the iteration logic in finalize_garbage() to tolerate objects vanishing from the list as a side effect of executing a finalizer.
| * Issue #21435: Segfault in gc with cyclic trashTim Peters2014-05-081-11/+23
| | | | | | | | | | Changed the iteration logic in finalize_garbage() to tolerate objects vanishing from the list as a side effect of executing a finalizer.
* | Issue #21396: Fix TextIOWrapper(..., write_through=True) to not force a ↵Antoine Pitrou2014-05-081-4/+5
|\ \ | |/ | | | | | | | | flush() on the underlying binary stream. Patch by akira.
| * Issue #21396: Fix TextIOWrapper(..., write_through=True) to not force a ↵Antoine Pitrou2014-05-081-4/+5
| | | | | | | | | | | | flush() on the underlying binary stream. Patch by akira.
* | Issue18314 Allow unlink to remove junctions. Includes support for creating ↵Tim Golden2014-05-053-36/+199
| | | | | | | | junctions. Patch by Kim Gräsman
* | Issue #21088: Merge from 3.4.Larry Hastings2014-05-041-12/+12
|\ \ | |/
| * Issue #21088: Bugfix for curses.window.addch() regression in 3.4.0.Larry Hastings2014-05-041-12/+12
| | | | | | | | In porting to Argument Clinic, the first two arguments were reversed.
* | Neaten-up a bit add add missing size change check.Raymond Hettinger2014-05-041-6/+11
| |
* | Simplify and speedup the internals of the heapq module.Raymond Hettinger2014-05-041-71/+36
| |
* | Issue #21101: Eliminate double hashing in the C code for collections.Counter().Raymond Hettinger2014-05-031-3/+14
| |
* | mergeRaymond Hettinger2014-05-031-8/+8
|\ \ | |/
| * Issue 21375: Fix possible Py_ssizet overflow in heapq.Raymond Hettinger2014-05-031-8/+8
| |