summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
| * Issue #21374: Fix pickling of DecimalTuple.Stefan Krah2014-04-291-4/+9
| |
* | Issue #21233: Add new C functions: PyMem_RawCalloc(), PyMem_Calloc(),Victor Stinner2014-05-023-19/+135
| | | | | | | | | | | | PyObject_Calloc(), _PyObject_GC_Calloc(). bytes(int) and bytearray(int) are now using ``calloc()`` instead of ``malloc()`` for large objects which is faster and use less memory (until the bytearray buffer is filled with data).
* | Use $type instead of $cls in the signature specification.Stefan Krah2014-05-021-1/+1
| |
* | Issue #21407: _decimal now supports function signatures.Stefan Krah2014-05-011-378/+482
| |
* | Issue #21374: Fix pickling of DecimalTuple.Stefan Krah2014-04-291-4/+9
| |
* | Issue #21321: itertools.islice() now releases the reference to the source ↵Antoine Pitrou2014-04-291-3/+22
|\ \ | |/ | | | | | | | | iterator when the slice is exhausted. Patch by Anton Afanasyev.
| * Issue #21321: itertools.islice() now releases the reference to the source ↵Antoine Pitrou2014-04-291-3/+22
| | | | | | | | | | | | iterator when the slice is exhausted. Patch by Anton Afanasyev.
* | Issue #21057: TextIOWrapper now allows the underlying binary stream's read() ↵Antoine Pitrou2014-04-291-14/+20
| | | | | | | | | | | | or read1() method to return an arbitrary bytes-like object (such as a memoryview). Patch by Nikolaus Rath.
* | Issue #20355: -W command line options now have higher priority than the ↵Antoine Pitrou2014-04-281-1/+18
| | | | | | | | PYTHONWARNINGS environment variable. Patch by Arfrever.
* | Backed out changeset: 17df50df62c7Tim Golden2014-04-273-171/+36
| |
* | Issue #18314 os.unlink will now remove junction points on Windows. Patch by ↵Tim Golden2014-04-273-36/+171
| | | | | | | | Kim Gräsman.
* | Fix compiler warning on WindowsZachary Ware2014-04-231-1/+1
| | | | | | | | ..\Modules\_testcapimodule.c(3320): warning C4098: 'matmulType_dealloc' : 'void' function returning a value
* | Add implementation notesRaymond Hettinger2014-04-231-1/+32
| |
* | - Merge 3.4doko@ubuntu.com2014-04-171-1/+1
|\ \ | |/
| * Fixes for KFreeBSD and the Hurd:doko@ubuntu.com2014-04-171-1/+1
| | | | | | | | | | | | | | | | - Issue #21274: Define PATH_MAX for GNU/Hurd in Python/pythonrun.c. - Issue #21276: posixmodule: Don't define USE_XATTRS on KFreeBSD and the Hurd. - Issue #21275: Fix a socket test on KFreeBSD.
* | Merge from 3.4Andrew Kuchling2014-04-161-2/+2
|\ \ | |/
| * #15840: make docs consistent by saying operations on closed files raise ↵Andrew Kuchling2014-04-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | ValueError. Patch by Caelyn McAulay. Neither Caelyn nor I could find any cases in 2.7 or 3.4/5 where an operation on a closed stream raised IOError; generally the C implementations have a macro to check for the stream being closed, and these macros all raised ValueError. If we find any, a new bug should be opened.
* | Add conditional code for android's lack of definition of SYS_getdent64.Gregory P. Smith2014-04-141-0/+6
|\ \ | |/ | | | | | | | | Fixes issue20307. No Misc/NEWS entry because frankly this is an esoteric platform for anyone to be figuring out how to cross compile CPython for.
| * Add conditional code for android's lack of definition of SYS_getdent64.Gregory P. Smith2014-04-141-0/+6
| | | | | | | | | | | | Fixes issue20307. No Misc/NEWS entry because frankly this is an esoteric platform for anyone to be figuring out how to cross compile CPython for.
* | merge 3.4Benjamin Peterson2014-04-141-4/+5
|\ \ | |/
| * merge 3.3Benjamin Peterson2014-04-141-4/+5
| |\
| | * merge 3.2Benjamin Peterson2014-04-141-4/+5
| | |\
| | | * disallow a negative idx parameterBenjamin Peterson2014-04-141-4/+5
| | | |
* | | | merge 3.4Benjamin Peterson2014-04-141-1/+4
|\ \ \ \ | |/ / /
| * | | merge 3.3Benjamin Peterson2014-04-141-1/+4
| |\ \ \ | | |/ /
| | * | merge 3.2Benjamin Peterson2014-04-141-1/+4
| | |\ \ | | | |/
| | | * in scan_once, prevent the reading of arbitrary memory when passed a negative ↵Benjamin Peterson2014-04-141-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | index Bug reported by Guido Vranken.
* | | | Issue #20539: Improve math.factorial error messages and types for large inputs.Mark Dickinson2014-04-101-4/+12
| | | | | | | | | | | | | | | | | | | | - Better message for the OverflowError in large positive inputs. - Changed exception type from OverflowError to ValueError for large negative inputs.
* | | | PEP 465: a dedicated infix operator for matrix multiplication (closes #21176)Benjamin Peterson2014-04-102-0/+111
| | | |
* | | | Issue #21076: the C signal module has been renamed to _signalVictor Stinner2014-04-041-1/+1
| | | |
* | | | merge along w/ fix for issue #2107 (commit c9239171e429)Brett Cannon2014-04-041-3/+3
|\ \ \ \
| * | | | fix #21076: turn signal module constants into enumsGiampaolo Rodola'2014-04-041-2/+2
|/ / / /
* | | | Issue #6676: merge from 3.4Ned Deily2014-03-271-1/+1
|\ \ \ \ | |/ / /
| * | | Issue #6676: Ensure a meaningful exception is raised when attemptingNed Deily2014-03-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | to parse more than one XML document per pyexpat xmlparser instance. (Original patches by Hirokazu Yamamoto and Amaury Forgeot d'Arc, with suggested wording by David Gutteridge)
* | | | (Merge 3.4) Issue #21036: Fix typo in macro nameVictor Stinner2014-03-243-6/+6
|\ \ \ \ | |/ / / | | | | | | | | _PY_HASHTABLE_ENTRY_DATA => _Py_HASHTABLE_ENTRY_DATA
| * | | Issue #21036: Fix typo in macro nameVictor Stinner2014-03-243-6/+6
| | | | | | | | | | | | | | | | _PY_HASHTABLE_ENTRY_DATA => _Py_HASHTABLE_ENTRY_DATA
* | | | Issue #21015: SSL contexts will now automatically select an elliptic curve ↵Antoine Pitrou2014-03-221-0/+15
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | for ECDH key exchange on OpenSSL 1.0.2 and later, and otherwise default to "prime256v1". (should also fix a buildbot failure introduced by #20995)