summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Line missed in last checkinRaymond Hettinger2015-02-281-1/+0
|
* Since the index is always non-negative, use faster unsigned division and modulo.Raymond Hettinger2015-02-271-3/+5
|
* Bump the blocksize up from 62 to 64 to speed up the modulo calculation.Raymond Hettinger2015-02-271-6/+3
| | | | | | | | | Remove the old comment suggesting that it was desireable to have blocksize+2 as a multiple of the cache line length. That would have made sense only if the block structure start point was always aligned to a cache line boundary. However, the memory allocations are 16 byte aligned, so we don't really have control over whether the struct spills across cache line boundaries.
* Silenced minor GCC warnings.Serhiy Storchaka2015-02-263-2/+17
|
* Issue #15955: Add an option to limit the output size in bz2.decompress().Antoine Pitrou2015-02-262-72/+224
| | | | Patch by Nikolaus Rath.
* Back-out wcstok deprecation suppression and updates calls to use wcstok_s.Steve Dower2015-02-261-3/+3
|
* Issue #23152: Move declarations back to posixmodule.c.Serhiy Storchaka2015-02-221-0/+6
| | | | | | | Declarations of Windows-specific auxilary functions need Windows types from windows.h. Instead of including windows.h in Python.h and making it available to all Windows users, it is simpler and safer just move declarations to the single file that needs them.
* Issue #23152: Move declaration into a header and exclude from stable API.Serhiy Storchaka2015-02-221-9/+0
|
* Issue #23152: Renames time_t_to_FILE_TIME to _Py_time_t_to_FILE_TIME, ↵Steve Dower2015-02-211-22/+4
| | | | removes unused struct win32_stat and return value
* Issue #23152: Renames attribute_data_to_stat to _Py_attribute_data_to_statSteve Dower2015-02-211-3/+3
|
* Issue #23152: Implement _Py_fstat() to support files larger than 2 GB on ↵Steve Dower2015-02-215-162/+53
| | | | | | Windows. fstat() may fail with EOVERFLOW on files larger than 2 GB because the file size type is an signed 32-bit integer.
* Issue #23215: Multibyte codecs with custom error handlers that ignores errorsSerhiy Storchaka2015-02-201-8/+11
|\ | | | | | | | | consumed too much memory and raised SystemError or MemoryError. Original patch by Aleksi Torhamo.
| * Issue #23215: Multibyte codecs with custom error handlers that ignores errorsSerhiy Storchaka2015-02-201-8/+11
| | | | | | | | | | consumed too much memory and raised SystemError or MemoryError. Original patch by Aleksi Torhamo.
* | Issue #5700: io.FileIO() called flush() after closing the file.Serhiy Storchaka2015-02-201-7/+14
|\ \ | |/ | | | | flush() was not called in close() if closefd=False.
| * Issue #5700: io.FileIO() called flush() after closing the file.Serhiy Storchaka2015-02-201-7/+14
| | | | | | | | flush() was not called in close() if closefd=False.
| * Shoould be Py_MIN, not Py_MAX.Serhiy Storchaka2015-02-161-1/+1
| |
* | Regenerated Argument Clinic checksums.Serhiy Storchaka2015-02-204-7/+7
| |
* | Improve struct cache locality by bring commonly accessed fields close together.Raymond Hettinger2015-02-201-1/+1
| |
* | Issue #22883: Got rid of outdated references to PyInt and PyString in comments.Serhiy Storchaka2015-02-175-12/+9
| |
* | Issue #23450: Fixed possible integer overflows.Serhiy Storchaka2015-02-164-46/+60
| |
* | Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka2015-02-1612-30/+40
|\ \ | |/ | | | | overflows. Added few missed PyErr_NoMemory().
| * Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka2015-02-1612-30/+40
| | | | | | | | overflows. Added few missed PyErr_NoMemory().
* | Fixed few compiler warnings.Serhiy Storchaka2015-02-162-5/+4
| |
* | Issue #23096: Pickle representation of floats with protocol 0 now is the sameSerhiy Storchaka2015-02-151-1/+1
| | | | | | | | for both Python and C implementations.
* | Issue #13637: Improve exception message of a2b_* functions.Berker Peksag2015-02-141-2/+2
|\ \ | |/ | | | | Patch by Vajrasky Kok.
| * Issue #13637: Improve exception message of a2b_* functions.Berker Peksag2015-02-141-2/+2
| | | | | | | | Patch by Vajrasky Kok.
* | Issue #23450: Fix signal.set_wakeup_fd() on WindowsVictor Stinner2015-02-121-11/+14
| | | | | | | | Detect integer overflow on the file descriptor of the socket on 64-bit Python.
* | Merge 3.4 (faulthandler)Victor Stinner2015-02-111-4/+5
|\ \ | |/
| * Issue #23433: Fix faulthandler._stack_overflow()Victor Stinner2015-02-111-4/+5
| | | | | | | | | | Fix undefined behaviour: don't compare pointers. Use Py_uintptr_t type instead of void*. It fixes test_faulthandler on Fedora 22 which now uses GCC 5.
* | Update copyright.Raymond Hettinger2015-02-111-1/+1
| |
* | merge 3.4 (#23361)Benjamin Peterson2015-02-101-2/+12
|\ \ | |/
| * merge 3.3 (#23361)Benjamin Peterson2015-02-101-2/+12
| |\
| | * add overflow checking (closes #23361)Benjamin Peterson2015-02-101-2/+12
| | |
* | | Issue #23285: PEP 475 -- Retry system calls failing with EINTR.Charles-François Natali2015-02-073-308/+441
| | |
* | | Issue #23392: Added tests for marshal C API that works with FILE*.Serhiy Storchaka2015-02-061-0/+166
|\ \ \ | |/ /
| * | Issue #23392: Added tests for marshal C API that works with FILE*.Serhiy Storchaka2015-02-061-0/+166
| | |
* | | Issue #14203: Temporary fix for the compile failure on Windows.Stefan Krah2015-02-031-0/+4
| | |
* | | Issue #14203: Remove obsolete support for view==NULL in bytesiobuf_getbuffer()Stefan Krah2015-02-033-14/+36
| | | | | | | | | | | | and array_buffer_getbuf().
* | | Issue #15381: Fixed a bug in BytesIO.write().Serhiy Storchaka2015-02-031-9/+10
| | | | | | | | | | | | | | | | | | It was expected that string_size == PyBytes_GET_SIZE(buf) if the buffer is shared, but truncate() and __setstate__() can set string_size without unsharing the buffer.
* | | Issue #14203: Remove obsolete support for view==NULL in PyBuffer_FillInfo()Stefan Krah2015-02-031-0/+34
| | | | | | | | | | | | | | | and bytearray_getbuffer(). Both functions now raise BufferError in that case.
* | | Issue #15381: Try to fix refcount bug. Empty and 1-byte buffers are always ↵Serhiy Storchaka2015-02-031-1/+3
| | | | | | | | | | | | shared.
* | | Issue #15381: Optimized io.BytesIO to make less allocations and copyings.Serhiy Storchaka2015-02-031-186/+152
| | |
* | | Issue #22818: Splitting on a pattern that could match an empty string nowSerhiy Storchaka2015-02-031-0/+13
| | | | | | | | | | | | | | | raises a warning. Patterns that can only match empty strings are now rejected.
* | | Issue #23099: Closing io.BytesIO with exported buffer is rejected now toSerhiy Storchaka2015-02-031-0/+1
|\ \ \ | |/ / | | | | | | prevent corrupting exported buffer.
| * | Issue #23099: Closing io.BytesIO with exported buffer is rejected now toSerhiy Storchaka2015-02-031-0/+1
| | | | | | | | | | | | prevent corrupting exported buffer.
* | | Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests.Serhiy Storchaka2015-02-021-20/+6
|\ \ \ | |/ / | | | | | | Used PyMem_New to check overflow.
| * | Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests.Serhiy Storchaka2015-02-021-20/+6
| |\ \ | | |/ | | | | | | Used PyMem_New to check overflow.
| | * Issues #23363, #23364, #23365, #23366: Fixed itertools overflow tests.Serhiy Storchaka2015-02-021-20/+6
| | | | | | | | | | | | Used PyMem_New to check overflow.
* | | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka2015-02-026-59/+79
|\ \ \ | |/ / | | | | | | and PyObject_AsWriteBuffer().
| * | Issue #22896: Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()Serhiy Storchaka2015-02-026-59/+79
| | | | | | | | | | | | and PyObject_AsWriteBuffer().