summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Issue #25626: Change zlib to accept Py_ssize_t and cap to UINT_MAXMartin Panter2015-11-202-33/+33
| | | | | | | | | | | | | | The underlying zlib library stores sizes in “unsigned int”. The corresponding Python parameters are all sizes of buffers filled in by zlib, so it is okay to reduce higher values to the UINT_MAX internal cap. OverflowError is still raised for sizes that do not fit in Py_ssize_t. Sizes are now limited to Py_ssize_t rather than unsigned long, because Python byte strings cannot be larger than Py_ssize_t. Previously this could result in a SystemError on 32-bit platforms. This resolves a regression in the gzip module when reading more than UINT_MAX or LONG_MAX bytes in one call, introduced by revision 62723172412c.
* Fixes #23564: Fix a partially broken sanity check in the _posixsubprocessGregory P. Smith2015-11-161-1/+2
| | | | | internals regarding how fds_to_pass were passed to the child. The bug had no actual impact as subprocess.py already avoided it.
* merge 3.4 (#25578)Benjamin Peterson2015-11-141-2/+5
|\
| * rm trailing wsBenjamin Peterson2015-11-141-1/+1
| |
| * fix possible memory lea k in _get_aia_uri (closes #25578)Benjamin Peterson2015-11-141-1/+4
| |
* | merge 3.4 (#25569)Benjamin Peterson2015-11-141-1/+1
|\ \ | |/
| * fix build with older openssl (#25569)Benjamin Peterson2015-11-141-1/+1
| |
* | Issue #25498: Merge ctypes crash fix from 3.4 into 3.5Martin Panter2015-11-131-18/+38
|\ \ | |/
| * Issue #25498: Fix GC crash due to ctypes objects wrapping a memoryviewMartin Panter2015-11-131-18/+38
| | | | | | | | | | This was a regression caused by revision 1da9630e9b7f. Based on patch by Eryksun.
* | merge 3.4 (#25530)Benjamin Peterson2015-11-121-0/+2
|\ \ | |/
| * always set OP_NO_SSLv3 by default (closes #25530)Benjamin Peterson2015-11-121-0/+2
| |
* | merge 3.5 (#25569)Benjamin Peterson2015-11-121-28/+24
|\ \ | |/
| * fix memory leak in _get_crl_dp (closes #25569)Benjamin Peterson2015-11-121-28/+24
| | | | | | | | Patch started by Stéphane Wirtel.
* | Issue #25523: Further a-to-an corrections new in 3.5.Serhiy Storchaka2015-11-021-1/+1
| |
* | Issue #25523: Merge a-to-an corrections from 3.4.Serhiy Storchaka2015-11-022-2/+2
|\ \ | |/
| * Issue #25523: Further a-to-an corrections.Serhiy Storchaka2015-11-022-2/+2
| |
* | Issue #25523: Further a-to-an corrections new in 3.5Martin Panter2015-11-021-1/+1
| |
* | Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-0213-26/+26
|\ \ | |/
| * Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-0213-26/+26
| | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* | Issue #25447: The lru_cache() wrapper objects now can be copied and pickledSerhiy Storchaka2015-10-241-0/+7
| | | | | | | | (by returning the original object unchanged).
* | sys.setrecursionlimit() now raises RecursionErrorVictor Stinner2015-10-121-0/+10
| | | | | | | | | | | | | | Issue #25274: sys.setrecursionlimit() now raises a RecursionError if the new recursion limit is too low depending at the current recursion depth. Modify also the "lower-water mark" formula to make it monotonic. This mark is used to decide when the overflowed flag of the thread state is reset.
* | Close #24784: Fix compilation without thread supportVictor Stinner2015-10-112-2/+12
| | | | | | | | | | | | | | | | Add "#ifdef WITH_THREAD" around cals to: * PyGILState_Check() * _PyImport_AcquireLock() * _PyImport_ReleaseLock()
* | merge 3.4 (#25371)Benjamin Peterson2015-10-111-2/+2
|\ \ | |/
| * add a missing comma (closes #25371)Benjamin Peterson2015-10-111-2/+2
| |
* | Issue #22413: Remove comment made out of date by Argument ClinicMartin Panter2015-10-101-4/+2
| |
* | Issue #22413: Merge StringIO doc from 3.4 into 3.5Martin Panter2015-10-101-1/+6
|\ \ | |/
| * Issue #22413: Document newline effect on StringIO initializer and getvalueMartin Panter2015-10-101-1/+6
| | | | | | | | Also add to comment in the C code.
* | Merge typo fixes from 3.4 into 3.5Martin Panter2015-10-071-1/+1
|\ \ | |/
| * Various minor typos in documentation and commentsMartin Panter2015-10-071-1/+1
| |
* | Backport early-out 91259f061cfb to reduce the cost of bb1a2944bcb6Raymond Hettinger2015-10-071-1/+5
| |
* | Issue #25290: Fix typo in csv.reader() docstringBerker Peksag2015-10-021-1/+1
|\ \ | |/ | | | | Patch by Johannes Niediek.
| * Issue #25290: Fix typo in csv.reader() docstringBerker Peksag2015-10-021-1/+1
| | | | | | | | Patch by Johannes Niediek.
* | Issue #24483: C implementation of functools.lru_cache() now calculates key'sSerhiy Storchaka2015-10-021-6/+20
| | | | | | | | hash only once.
* | Issue #25262. Added support for BINBYTES8 opcode in Python implementation ofSerhiy Storchaka2015-09-291-2/+12
|\ \ | |/ | | | | | | unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8 opcodes no longer silently ignored on 32-bit platforms in C implementation.
| * Issue #25262. Added support for BINBYTES8 opcode in Python implementation ofSerhiy Storchaka2015-09-291-1/+11
| | | | | | | | | | unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8 opcodes no longer silently ignored on 32-bit platforms in C implementation.
| * Closes issue #23600: Wrong results from tzinfo.fromutc().Alexander Belopolsky2015-09-281-1/+1
| |
* | Closes issue #23600: Wrong results from tzinfo.fromutc().Alexander Belopolsky2015-09-281-1/+1
| |
* | Issue #25203: Failed readline.set_completer_delims() no longer left theSerhiy Storchaka2015-09-271-4/+5
|\ \ | |/ | | | | module in inconsistent state.
| * Issue #25203: Failed readline.set_completer_delims() no longer left theSerhiy Storchaka2015-09-271-4/+5
| | | | | | | | module in inconsistent state.
* | merge 3.4Benjamin Peterson2015-09-271-2/+2
|\ \ | |/
| * fix spacingBenjamin Peterson2015-09-271-2/+2
| |
* | merge 3.4 (#25245)Benjamin Peterson2015-09-271-0/+1
|\ \ | |/
| * initialize return value to NULL to avoid compiler compliants (closes #25245)Benjamin Peterson2015-09-271-0/+1
| |
* | detect alpn by feature flag not openssl version (closes #23329)Benjamin Peterson2015-09-271-2/+1
| |
* | Issue #25135: Avoid possible reentrancy issues in deque_clear.Raymond Hettinger2015-09-261-3/+59
| |
* | merge 3.4Benjamin Peterson2015-09-261-0/+6
|\ \ | |/
| * prevent overflow in _Unpickler_ReadBenjamin Peterson2015-09-261-0/+6
| |
* | Issue #25092: Fix datetime.strftime() failure when errno was already set to ↵Steve Dower2015-09-221-0/+3
| | | | | | | | EINVAL.
* | Merge 3.4 (datetime rounding)Victor Stinner2015-09-181-11/+63
|\ \ | |/
| * Issue #23517: Fix rounding in fromtimestamp() and utcfromtimestamp() methodsVictor Stinner2015-09-181-8/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | of datetime.datetime: microseconds are now rounded to nearest with ties going to nearest even integer (ROUND_HALF_EVEN), instead of being rounding towards zero (ROUND_DOWN). It's important that these methods use the same rounding mode than datetime.timedelta to keep the property: (datetime(1970,1,1) + timedelta(seconds=t)) == datetime.utcfromtimestamp(t) It also the rounding mode used by round(float) for example. Add more unit tests on the rounding mode in test_datetime.