Han Lee
829dacce4f
bpo-26669: Fix nan arg value error in pytime.c ( #3085 )
...
* Fix #26669
* Modify NaN check function and error message
* Fix pytime.c when arg is nan
* fix whitespace
2017-09-08 16:05:05 -07:00
Benjamin Peterson
db610e909b
delete dead locale initialization code for windows ( #3461 )
2017-09-08 14:30:07 -07:00
Serhiy Storchaka
e3b2b4b8d9
bpo-31393: Fix the use of PyUnicode_READY(). ( #3451 )
2017-09-08 09:58:51 +03:00
Eric Snow
2ebc5ce42a
bpo-30860: Consolidate stateful runtime globals. ( #3397 )
...
* group the (stateful) runtime globals into various topical structs
* consolidate the topical structs under a single top-level _PyRuntimeState struct
* add a check-c-globals.py script that helps identify runtime globals
Other globals are excluded (see globals.txt and check-c-globals.py).
2017-09-07 23:51:28 -06:00
Nick Coghlan
5a8516701f
bpo-31344: Per-frame control of trace events (GH-3417)
...
f_trace_lines: enable/disable line trace events
f_trace_opcodes: enable/disable opcode trace events
These are intended primarily for testing of the interpreter
itself, as they make it much easier to emulate signals
arriving at unfortunate times.
2017-09-08 10:14:16 +10:00
Benjamin Peterson
a853a8ba78
bpo-31373: fix undefined floating-point demotions ( #3396 )
2017-09-07 11:13:59 -07:00
Benjamin Peterson
c988ae01fe
remove current_filename optimization from marshal ( #3423 ) (closes bpo-31384)
2017-09-07 10:49:12 -07:00
Antoine Pitrou
a6a4dc816d
bpo-31370: Remove support for threads-less builds ( #3385 )
...
* Remove Setup.config
* Always define WITH_THREAD for compatibility.
2017-09-07 18:56:24 +02:00
Łukasz Langa
e7c566caf1
bpo-30465: Fix lineno and col_offset in fstring AST nodes ( #1800 )
...
For f-string ast nodes, fix the line and columns so that tools such as flake8 can identify them correctly.
2017-09-06 17:27:58 -07:00
Antoine Pitrou
bcaac8188b
Revert "pytime: include winsock2, so we can have a complete timeval type ( #3377 )" ( #3383 )
...
This reverts commit 833860615b , as it broke Windows builds.
2017-09-06 13:31:09 +02:00
Eric Snow
05351c1bd8
Revert "bpo-30860: Consolidate stateful runtime globals." ( #3379 )
...
Windows buildbots started failing due to include-related errors.
2017-09-05 21:43:08 -07:00
Benjamin Peterson
833860615b
pytime: include winsock2, so we can have a complete timeval type ( #3377 )
2017-09-05 20:45:48 -07:00
Benjamin Peterson
b0a9a5a6a4
correct initialization code ( #3376 )
...
Explicitly initialize struct members rather than relying on compiler extensions.
2017-09-05 20:19:12 -07:00
Eric Snow
76d5abc868
bpo-30860: Consolidate stateful runtime globals. ( #2594 )
...
* group the (stateful) runtime globals into various topical structs
* consolidate the topical structs under a single top-level _PyRuntimeState struct
* add a check-c-globals.py script that helps identify runtime globals
Other globals are excluded (see globals.txt and check-c-globals.py).
2017-09-05 18:26:16 -07:00
Eric Snow
86b7afdfee
bpo-28411: Remove "modules" field from Py_InterpreterState. ( #1638 )
...
sys.modules is the one true source.
2017-09-04 17:54:09 -06:00
Serhiy Storchaka
265fcc5fc2
bpo-31286, bpo-30024: Fixed stack usage in absolute imports with ( #3217 )
...
binding a submodule to a name.
2017-08-29 15:47:44 +03:00
INADA Naoki
a6296d34a4
bpo-31095: fix potential crash during GC (GH-2974)
2017-08-24 14:55:17 +09:00
Oren Milman
bf9075a0c5
bpo-31229: Fixed wrong error messages when too many keyword arguments are received. ( #3180 )
2017-08-23 21:16:48 +03:00
Oren Milman
58cf7488d5
bpo-31236: Improved some error messages of min() and max().
2017-08-21 20:19:07 +03:00
Stefan Krah
f432a3234f
bpo-30923: Silence fall-through warnings included in -Wextra since gcc-7.0. ( #3157 )
2017-08-21 13:09:59 +02:00
Serhiy Storchaka
9b0d1d647e
bpo-31070: Fix a race condition in importlib _get_module_lock(). ( #3033 )
2017-08-09 14:29:12 +03:00
Yuan Chao Chou
2af565baf4
Fix a shadow-compatible-local warning ( #2180 )
...
Change the shadowing naming, 'value' (Python-ast.c:4652), to 'val'
to prevent the variables from being misused.
2017-08-04 10:53:12 -07:00
Serhiy Storchaka
25e4f779d7
bpo-31071: Avoid masking original TypeError in call with * unpacking ( #2957 )
...
when other arguments are passed.
2017-08-03 11:37:15 +03:00
Ville Skyttä
49b2734bf1
Spelling fixes ( #2902 )
2017-08-03 09:00:59 +03:00
scoder
e4c06bcca3
bpo-31091: Remove dead code in PyErr_GivenExceptionMatches(). ( #2963 )
...
According to the comment, there was previously a call to PyObject_IsSubclass() involved which could fail, but since it was replaced with a call to PyType_IsSubtype(), it can no longer fail.
2017-07-31 23:27:46 +03:00