summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Restore the data block size to 62.Raymond Hettinger2013-07-281-3/+6
| | | | | | | | | | | | The former block size traded away good fit within cache lines in order to gain faster division in deque_item(). However, compilers are getting smarter and can now replace the slow division operation with a fast integer multiply and right shift. Accordingly, it makes sense to go back to a size that lets blocks neatly fill entire cache-lines. GCC-4.8 and CLANG 4.0 both compute "x // 62" with something roughly equivalent to "x * 9520900167075897609 >> 69".
* Issue #18513: Add workaround for OS X 10.8 cexp bug that leads to wrong ↵Raymond Hettinger2013-07-201-0/+7
| | | | cmath.rect(0.0,-0.0) results.
* Backport c952f3d122ae: Tweak the deque struct by moving the least used fieldsRaymond Hettinger2013-07-161-1/+1
| | | | (maxlen and weakref) to the end.
* Move the leftlink to the end of the block structure.Raymond Hettinger2013-07-161-1/+1
| | | | | | | | | | | | The current pattern of memory access will update both the leftlink and rightlink at the same time, so they should be positioned side-by-side for better cache locality. Keeping the leftlink at the front of the structure would make sense only if the paired updates were eliminated by backporting changesets 49a9c734304d, 3555cc0ca35b, ae9ee46bd471, and 744dd749e25b. However, that isn't likely to happen, so we're better off with the leftlink at the end of the structure.
* Issue #18101: Tcl.split() now process Unicode strings nested in a tuple as itSerhiy Storchaka2013-07-111-0/+27
| | | | | | do with byte strings. Added tests for Tcl.split() and tcl.splitline().
* Issue #17097: Make multiprocessing ignore EINTR.Richard Oudkerk2013-07-011-9/+48
|
* reapply f1dc30a1be72Benjamin Peterson2013-06-251-1/+1
|
* reapply 5accb0ac8bfbBenjamin Peterson2013-06-251-11/+7
|
* reapply f1dc30a1be72Benjamin Peterson2013-06-251-1/+1
|
* reapply f1dc30a1be72Benjamin Peterson2013-06-251-1/+1
|
* Issue #18135: ssl.SSLSocket.write() now raises an OverflowError if the inputVictor Stinner2013-06-241-6/+7
| | | | | string in longer than 2 gigabytes. The ssl module does not support partial write.
* also backout f1dc30a1be72 for not being a bugfixBenjamin Peterson2013-06-231-1/+1
|
* Issue #18135: Fix a possible integer overflow in ssl.SSLSocket.write()Victor Stinner2013-06-231-1/+6
| | | | for strings longer than 2 gigabytes.
* backout 5accb0ac8bfb; needs more discussion on python-devBenjamin Peterson2013-06-221-7/+11
|
* #18113: avoid segfault if Py_XDECREF triggers code that calls ↵Andrew Kuchling2013-06-221-3/+8
| | | | | | set_panel_userptr again Problem noted & original patch by Serhiy Storchaka; I tweaked the patch a bit.
* Arrange structure to match the common access patterns.Raymond Hettinger2013-06-221-1/+1
|
* Fix for r84195: add HAVE_ALLOCA_H to configure and only include alloca.h if ↵Christian Heimes2013-06-181-0/+3
| | | | it's available
* ctypes: AIX needs an explicit #include <alloca.h> to get alloca()Victor Stinner2013-06-171-0/+1
|
* #18113: Objects associated to a curses.panel object with set_userptr() were ↵Andrew Kuchling2013-06-151-0/+4
| | | | | | leaked. Reported by Atsuo Ishimoto.
* Fix comment blocks. Adjust blocksize to a power-of-two for better divmod ↵Raymond Hettinger2013-06-141-11/+7
| | | | computations.
* Ensure that the fix for #17269 also works on OSX 10.4Ronald Oussoren2013-06-101-1/+1
| | | | AI_NUMERICSERV isn't defined on OSX 10.4.
* Issue #17269: Workaround for a platform bug in getaddrinfo on OSXRonald Oussoren2013-05-241-0/+9
| | | | | Without this patch socket.getaddrinfo crashed when called with some unusual argument combinations.
* Issue #17979: Fixed the re module in build with --disable-unicode.Serhiy Storchaka2013-05-211-2/+2
|
* - Fix typos in the multiprocessing module.doko@ubuntu.com2013-05-151-1/+1
|
* #16523: improve attrgetter/itemgetter/methodcaller documentation.Ezio Melotti2013-05-081-7/+7
|
* Issue #17928: Fix test_structmembers on 64-bit big-endian machines.Antoine Pitrou2013-05-081-1/+1
| | | | (_testcapi isn't Py_ssize_t-clean, the "s#" code should use an int for length)
* Issue #17926: Fix dbm.__contains__ on 64-bit big-endian machines.Antoine Pitrou2013-05-071-3/+5
|
* Issue #17289: The readline module now plays nicer with external modules or ↵Antoine Pitrou2013-05-061-8/+19
| | | | | | applications changing the rl_completer_word_break_characters global variable. Initial patch by Bradley Froehle.
* Issue #12181: select module: Fix struct kevent definition on OpenBSD 64-bitCharles-Francois Natali2013-05-061-7/+28
| | | | platforms. Patch by Federico Schwindt.
* Issue #14173: Avoid crashing when reading a signal handler during ↵Antoine Pitrou2013-05-041-3/+11
| | | | interpreter shutdown.
* This local change was lost during the fixing of issue17192 to updateGregory P. Smith2013-04-301-0/+5
| | | | | libffi to 3.0.13. (i'm not sure if it is needed anymore but see issue 10309 for details which makes no mention of upstream)
* Issue #17857: Prevent build failures with pre-3.5.0 versions of sqlite3,Serhiy Storchaka2013-04-283-7/+7
| | | | | | | such as was shipped with Centos 5 and Mac OS X 10.4. This bug was already fixed in issue14572 for 2.7 only and then it was backported back from 3.3 in issue17073.
* Issue #17710: Fix cPickle raising a SystemError on bogus input.Antoine Pitrou2013-04-151-4/+6
|
* Issue #17016: Get rid of possible pointer wraparounds and integer overflowsSerhiy Storchaka2013-04-131-11/+11
| | | | in the re module. Patch by Nickolai Zeldovich.
* - Issue #17682: Add the _io module to Modules/Setup.dist (commented out).doko@ubuntu.com2013-04-091-0/+3
|
* - Issue #13150, #17512: sysconfig no longer parses the Makefile and config.hdoko@ubuntu.com2013-04-081-4/+19
| | | | | files when imported, instead doing it at build time. This makes importing sysconfig faster and reduces Python startup time by 20%.
* Issue #17662: fix socketmodule compilation with Setup.dist.Kristjan Valur Jonsson2013-04-081-1/+1
| | | | Patch contributed by Bohuslav "Slavek" Kabrda (bkabrda)
* Revert a premature patch for issue #14010 (changeset d17d10c84d27).Serhiy Storchaka2013-04-061-65/+10
|
* Issue #14010: Fix a crash when iterating or deleting deeply nested filtersSerhiy Storchaka2013-04-061-10/+65
| | | | in itertools module (i.e. itertools.izip(), itertools.chain(), etc).
* always allow -1 as a uidBenjamin Peterson2013-03-231-4/+0
|
* undo PyInt -> PyLong change; that was wrongBenjamin Peterson2013-03-231-2/+2
|
* return int instead long when possible (#17531)Benjamin Peterson2013-03-231-2/+2
|
* Issue #10212: Support new buffer interface for struct.unpack andKristján Valur Jónsson2013-03-202-34/+44
| | | | cStringIO
* Issue #10296 : Don't handle BreakPoint exceptions usingKristján Valur Jónsson2013-03-191-0/+5
| | | | Structured Exception Handling on windows.
* - Issue #17477: Update the bsddb module to pybsddb 5.3.0, supportingdoko@ubuntu.com2013-03-192-393/+745
| | | | db-5.x, and dropping support for db-4.1 and db-4.2.
* issue #9090 : Take the same approach for socketmodule as daytimemoduleKristján Valur Jónsson2013-03-192-24/+5
| | | | | when it needs support from timemodule (which is a .so on linux): link in timemodule.c for the required functions.
* #8862: Fix curses cleanup with getchar is interrupted by a signal.R David Murray2013-03-191-1/+3
| | | | | | I have no idea how one would write a test for this. Patch by July Tikhonov.
* issue #9090 : Limit the fix to windows since getting a portable simpleKristján Valur Jónsson2013-03-191-1/+20
| | | | time function on non-windows isn't quite simple.
* Issue #9090 : Error code 10035 calling socket.recv() on a socket with a timeoutKristján Valur Jónsson2013-03-192-15/+96
| | | | | (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)
* Fixes issue #17192: Update the ctypes module's libffi to v3.0.13. ThisGregory P. Smith2013-03-18241-8021/+34714
| | | | | specifically addresses a stack misalignment issue on x86 and issues on some more recent platforms.