Serhiy Storchaka
56cb465cc9
bpo-31825: Fixed OverflowError in the 'unicode-escape' codec ( #4058 )
...
and in codecs.escape_decode() when decode an escaped non-ascii byte.
2017-10-20 17:08:15 +03:00
George King
20faa68bbb
Move opcode tracing to occur after the possible update to f_lineno. (GH-3798)
2017-10-19 10:44:22 +10:00
Zane Bitter
de86073a76
bpo-28603: Fix formatting tracebacks for unhashable exceptions ( #4014 )
2017-10-18 00:29:39 +03:00
Pablo Galindo
2c15b29aea
bpo-31786: Make functions in the select module blocking when timeout is a small negative value. ( #4003 )
2017-10-17 17:14:41 +03:00
Victor Stinner
bdaeb7d237
bpo-31773: _PyTime_GetPerfCounter() uses _PyTime_t (GH-3983)
...
* Rewrite win_perf_counter() to only use integers internally.
* Add _PyTime_MulDiv() which compute "ticks * mul / div"
in two parts (int part and remaining) to prevent integer overflow.
* Clock frequency is checked at initialization for integer overflow.
* Enhance also pymonotonic() to reduce the precision loss on macOS
(mach_absolute_time() clock).
2017-10-16 08:44:31 -07:00
Dargor
28773ca7a7
bpo-31780: Fix incorrect error message for ',x', ',b', ',o' specs ( #4002 )
...
Patch by Pablo.
2017-10-14 23:41:13 -04:00
Victor Stinner
cba9a0c6de
bpo-31773: time.perf_counter() uses again double (GH-3964)
...
time.clock() and time.perf_counter() now use again C double
internally.
Remove also _PyTime_GetWinPerfCounterWithInfo(): use
_PyTime_GetPerfCounterDoubleWithInfo() instead on Windows.
2017-10-12 08:51:56 -07:00
Victor Stinner
277c84067f
Cleanup pytime.c ( #3955 )
...
* Move _PyTime_overflow() at the top
* Move assertion on numerator into _PyTime_ObjectToDenominator()
* PEP 7: add { ... } to if blocks
2017-10-11 08:11:38 -07:00
Victor Stinner
a997c7b434
bpo-31415: Add _PyTime_GetPerfCounter() and use it for -X importtime ( #3936 )
...
* Add _PyTime_GetPerfCounter()
* Use _PyTime_GetPerfCounter() for -X importtime
2017-10-10 02:51:50 -07:00
Serhiy Storchaka
f07e2b64df
bpo-31642: Restore blocking "from" import by setting None in sys.modules. ( #3834 )
2017-10-08 10:44:10 +03:00
Yury Selivanov
02e82a0596
bpo-31709: Update importlib magic ( #3906 )
2017-10-06 10:18:10 -04:00
Masayuki Yamamoto
731e189014
bpo-25658: Implement PEP 539 for Thread Specific Storage (TSS) API (GH-1362)
...
See PEP 539 for details.
Highlights of changes:
- Add Thread Specific Storage (TSS) API
- Document the Thread Local Storage (TLS) API as deprecated
- Update code that used TLS API to use TSS API
2017-10-06 20:41:34 +10:00
Yury Selivanov
b8ab9d3fc8
bpo-31708: Allow async generator expressions in synchronous functions ( #3905 )
2017-10-06 02:58:28 -04:00
Yury Selivanov
faa135acbf
bpo-31709: Drop support for asynchronous __aiter__. ( #3903 )
2017-10-06 02:08:57 -04:00
Benjamin Peterson
7faf7e5075
closes bpo-31696: don't mention GCC in sys.version when building with clang ( #3891 )
2017-10-05 21:15:14 -07:00
Jelle Zijlstra
ac317700ce
bpo-30406: Make async and await proper keywords ( #1669 )
...
Per PEP 492, 'async' and 'await' should become proper keywords in 3.7.
2017-10-05 23:24:46 -04:00
Barry Warsaw
36c1d1f1e5
PEP 553 built-in breakpoint() function (bpo-31353) ( #3355 )
...
Implement PEP 553, built-in breakpoint() with support from sys.breakpointhook(), along with documentation and tests. Closes bpo-31353
2017-10-05 12:11:18 -04:00
Benjamin Peterson
a8ed11742b
remove tabs from getcompiler.c ( #3892 )
2017-10-05 00:09:01 -07:00
Serhiy Storchaka
77732be801
bpo-30404: The -u option now makes the stdout and stderr streams totally unbuffered. ( #1667 )
2017-10-04 20:25:40 +03:00
Victor Stinner
8d5a3aad2f
bpo-31683: Py_FatalError() now supports long error messages ( #3878 )
...
On Windows, Py_FatalError() now limits the size to 256 bytes of the
buffer used to call OutputDebugStringW(). Previously, the size
depended on the length of the error message.
2017-10-04 09:50:12 -07:00
INADA Naoki
1a87de7fcf
bpo-31415: Add -X importtime option (GH-3490)
...
It shows show import time of each module.
It's useful for optimizing startup time.
Typical usage: python -X importtime -c 'import requests'
2017-10-03 19:46:34 +09:00
Oren Milman
7dc46d8cf5
bpo-31592: Fix an assertion failure in Python parser in case of a bad unicodedata.normalize(). ( #3767 )
2017-09-30 20:16:24 +03:00
Christian Heimes
3d2b407da0
bpo-31574: importlib dtrace ( #3749 )
...
Importlib was instrumented with two dtrace probes to profile import timing.
Signed-off-by: Christian Heimes <christian@python.org >
2017-09-29 15:53:19 -07:00
Oren Milman
8b4ff53c44
bpo-31285: Remove splitlines identifier from Python/_warnings.c ( #3803 )
...
(forgot to remove it in #3219 )
2017-09-29 21:16:02 +03:00
Benjamin Peterson
288d1daada
remove support for BSD/OS (closes bpo-31624) ( #3812 )
2017-09-28 22:44:27 -07:00