summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Add fast paths to deque_init() for the common casesRaymond Hettinger2015-10-011-3/+10
|
* Add an early-out for deque_clear()Raymond Hettinger2015-09-301-0/+3
|
* 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-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
| | |
* | | mergeAlexander Belopolsky2015-09-281-4/+5
|\ \ \
| * \ \ 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.
| | | * Issue #25203: Failed readline.set_completer_delims() no longer left theSerhiy Storchaka2015-09-271-4/+5
| | | | | | | | | | | | | | | | module in inconsistent state.
* | | | 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
| |\ \ \ | | |/ / | |/| |
| | * | Closes issue #23600: Wrong results from tzinfo.fromutc().Alexander Belopolsky2015-09-281-1/+1
| | |/
* | | merge 3.5Benjamin Peterson2015-09-271-2/+2
|\ \ \ | |/ /
| * | merge 3.4Benjamin Peterson2015-09-271-2/+2
| |\ \ | | |/
| | * fix spacingBenjamin Peterson2015-09-271-2/+2
| | |
* | | merge 3.5 (#25245)Benjamin Peterson2015-09-271-0/+1
|\ \ \ | |/ /
| * | 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
| | |
* | | merge 3.5 (#23329)Benjamin Peterson2015-09-271-2/+1
|\ \ \ | |/ /
| * | detect alpn by feature flag not openssl version (closes #23329)Benjamin Peterson2015-09-271-2/+1
| | |
* | | Move the copy and clear functions upwards to eliminate unnecessary forward ↵Raymond Hettinger2015-09-271-117/+113
| | | | | | | | | | | | references.
* | | Minor tweak to the order of variable updates.Raymond Hettinger2015-09-271-2/+2
| | |
* | | Bump up the maximum number of freeblocksRaymond Hettinger2015-09-271-1/+1
| | |
* | | Precomputing the number iterations allows the inner-loop to be vectorizable.Raymond Hettinger2015-09-261-2/+6
| | |
* | | Hoist constant expression out of an inner loop.Raymond Hettinger2015-09-261-6/+18
| | |
* | | mergeRaymond Hettinger2015-09-261-3/+59
|\ \ \ | |/ /
| * | Issue #25135: Avoid possible reentrancy issues in deque_clear.Raymond Hettinger2015-09-261-3/+59
| | |
* | | merge 3.5Benjamin Peterson2015-09-261-0/+6
|\ \ \ | |/ /
| * | merge 3.4Benjamin Peterson2015-09-261-0/+6
| |\ \ | | |/
| | * prevent overflow in _Unpickler_ReadBenjamin Peterson2015-09-261-0/+6
| | |
* | | Replace an unpredictable branch with a simple addition.Raymond Hettinger2015-09-241-3/+2
| | |
* | | Eliminate unnecessary variablesRaymond Hettinger2015-09-231-4/+2
| | |
* | | Merge with 3.5Steve Dower2015-09-231-0/+3
|\ \ \ | |/ /
| * | 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.
| * | Issue #25155: Add _PyTime_AsTimevalTime_t() functionVictor Stinner2015-09-181-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows, the tv_sec field of the timeval structure has the type C long, whereas it has the type C time_t on all other platforms. A C long has a size of 32 bits (signed inter, 1 bit for the sign, 31 bits for the value) which is not enough to store an Epoch timestamp after the year 2038. Add the _PyTime_AsTimevalTime_t() function written for datetime.datetime.now(): convert a _PyTime_t timestamp to a (secs, us) tuple where secs type is time_t. It allows to support dates after the year 2038 on Windows. Enhance also _PyTime_AsTimeval_impl() to detect overflow on the number of seconds when rounding the number of microseconds.
* | | Eliminate unnecessary variableRaymond Hettinger2015-09-221-2/+1
| | |
* | | Minor consistency improvements to negative value comparisons.Raymond Hettinger2015-09-221-9/+9
| | |
* | | Issue #25207, #14626: Fix my commit.Victor Stinner2015-09-211-3/+3
| | | | | | | | | | | | | | | It doesn't work to use #define XXX defined(YYY)" and then "#ifdef XXX" to check YYY.
* | | Issue #25207, #14626: Fix ICC compiler warnings in posixmodule.cVictor Stinner2015-09-211-3/+3
| | | | | | | | | | | | Replace "#if XXX" with #ifdef XXX".
* | | Add a fast path (no iterator creation) for a common case for repeating ↵Raymond Hettinger2015-09-191-4/+11
| | | | | | | | | | | | deques of size 1
* | | Hoist constant expression out of an inner loopRaymond Hettinger2015-09-191-2/+6
| | |
* | | Issue #25155: Add _PyTime_AsTimevalTime_t() functionVictor Stinner2015-09-181-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Windows, the tv_sec field of the timeval structure has the type C long, whereas it has the type C time_t on all other platforms. A C long has a size of 32 bits (signed inter, 1 bit for the sign, 31 bits for the value) which is not enough to store an Epoch timestamp after the year 2038. Add the _PyTime_AsTimevalTime_t() function written for datetime.datetime.now(): convert a _PyTime_t timestamp to a (secs, us) tuple where secs type is time_t. It allows to support dates after the year 2038 on Windows. Enhance also _PyTime_AsTimeval_impl() to detect overflow on the number of seconds when rounding the number of microseconds.
* | | Merge 3.5 (os.waitpid)Victor Stinner2015-09-151-2/+2
|\ \ \ | |/ /
| * | Issue #25118: Fix a regression of Python 3.5.0 in os.waitpid() on Windows.Victor Stinner2015-09-151-2/+2
| | | | | | | | | | | | Add an unit test on os.waitpid()
* | | Tighten inner-loop for deque_inplace_repeat().Raymond Hettinger2015-09-141-4/+6
| | |
* | | Add an exact type match fast path for deque_copy().Raymond Hettinger2015-09-131-0/+16
| | |