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
Zackery Spytz
c6ea8974e2
bpo-30640: Fix undefined behavior in _PyFunction_FastCallDict() and PyEval_EvalCodeEx() ( #2919 )
...
k + 1 was calculated with k = NULL.
2017-07-31 17:24:37 +03:00
Segev Finer
e7bc7aac3d
bpo-9566: Fix a warning in Python/getargs.c ( #2890 )
2017-07-26 08:58:25 -07:00
Stéphane Wirtel
ccfdb60af7
Fix a small typo in a comment ( #2863 )
2017-07-25 14:32:08 +02:00
Victor Stinner
e72b1359f8
bpo-30891: Fix again importlib _find_and_load() ( #2665 )
...
Use sys.modules.get() in the "with _ModuleLockManager(name):" block
to protect the dictionary key with the module lock and use an atomic
get to prevent race condition.
Remove also _bootstrap._POPULATE since it was unused
(_bootstrap_external now has its own _POPULATE object), add a new
_SENTINEL object instead.
2017-07-21 13:00:46 +02:00
Serhiy Storchaka
8a9cd20edc
bpo-30876: Relative import from unloaded package now reimports the package ( #2639 )
...
instead of failing with SystemError.
Relative import from non-package now fails with ImportError rather than
SystemError.
2017-07-12 06:50:03 +03:00
Victor Stinner
4f9a446f3f
bpo-30891: Fix importlib _find_and_load() race condition ( #2646 )
...
* Rewrite importlib _get_module_lock(): it is now responsible to hold
the imp lock directly.
* _find_and_load() now holds the module lock to check if name is in
sys.modules to prevent a race condition
2017-07-10 22:52:32 +02:00
Serhiy Storchaka
7e60192fe0
Remove _PyArg_NoStackKeywords(). ( #2641 )
2017-07-10 10:25:34 +02:00
Serhiy Storchaka
b4baacee1a
bpo-30814: Fixed a race condition when import a submodule from a package. ( #2580 )
2017-07-06 08:09:03 +03:00
Masayuki Yamamoto
0c31163093
bpo-30854: Fix compile error when --without-threads ( #2581 )
...
* bpo-30854: Fix compile error when --without-threads
* bpo-30854: fix news
2017-07-05 10:39:17 +02:00