Zackery Spytz
28fca0c422
bpo-37267: Do not check for FILE_TYPE_CHAR in os.dup() on Windows (GH-14051)
...
On Windows, os.dup() no longer creates an inheritable fd when handling a
character file.
2019-06-17 09:17:14 +02:00
Pablo Galindo
7a68f8c28b
bpo-37289: Remove 'if False' handling in the peephole optimizer (GH-14099)
2019-06-15 15:58:00 +01:00
Jeroen Demeyer
b2f94730d9
bpo-37249: add declaration of _PyObject_GetMethod (GH-14015)
2019-06-14 19:37:15 +09:00
Pablo Galindo
05f8318655
bpo-37269: Correctly optimise conditionals with constant booleans (GH-14071)
...
Fix a regression introduced by af8646c805 that was causing code of the form:
if True and False:
do_something()
to be optimized incorrectly, eliminating the block.
2019-06-14 06:54:53 +01:00
Michael Felt
d0eeb936d8
bpo-37077: Add native thread ID (TID) for AIX (GH-13624)
...
This is the followup for issue36084
https://bugs.python.org/issue37077
2019-06-13 15:34:46 -07:00
Victor Stinner
838f26402d
bpo-36710: Pass explicitly tstate in sysmodule.c (GH-14060)
...
* Replace global var Py_VerboseFlag with interp->config.verbose.
* Add _PyErr_NoMemory(tstate) function.
* Add tstate parameter to _PyEval_SetCoroutineOriginTrackingDepth()
and move the function to the internal API.
* Replace _PySys_InitMain(runtime, interp)
with _PySys_InitMain(runtime, tstate).
2019-06-13 22:41:23 +02:00
Pablo Galindo
3498c642f4
bpo-37213: Handle negative line deltas correctly in the peephole optimizer (GH-13969)
...
The peephole optimizer was not optimizing correctly bytecode after negative deltas were introduced. This is due to the fact that some special values (255) were being searched for in both instruction pointer delta and line number deltas.
2019-06-13 19:16:22 +01:00
Victor Stinner
022ac0a497
bpo-37253: Remove PyAST_obj2mod_ex() function (GH-14020)
...
PyAST_obj2mod_ex() is similar to PyAST_obj2mod() with an additional
'feature_version' parameter which is unused.
2019-06-13 09:18:45 +02:00
Victor Stinner
37d66d7d4b
bpo-37253: Add _PyCompilerFlags_INIT macro (GH-14018)
...
Add a new _PyCompilerFlags_INIT macro to initialize PyCompilerFlags
variables, rather than initializing cf_flags and cf_feature_version
explicitly in each variable.
2019-06-13 02:16:41 +02:00
David Carlier
5287022eee
bpo-37160: Thread native ID NetBSD support (GH-13835)
2019-06-12 17:37:56 +02:00
Victor Stinner
efdf6ca90f
bpo-35766: compile(): rename feature_version parameter (GH-13994)
...
Rename compile() feature_version parameter to _feature_version and
convert it to a keyword-only parameter.
Update also test_type_comments to pass feature_version as a tuple.
2019-06-12 02:52:16 +02:00
Victor Stinner
0fd2c300c2
Revert "bpo-36818: Add PyInterpreterState.runtime field. (gh-13129)" (GH-13795)
...
This reverts commit 396e0a8d9d .
2019-06-04 03:15:09 +02:00
Inada Naoki
eddef861b4
bpo-37146: disable opcache when Py_DEBUG is defined (GH-13787)
...
--with-pydebug is commonly used to find memory leaks.
But opcache makes it harder.
So disable opcache when Py_DEBUG is defined.
2019-06-04 00:38:09 +02:00
Victor Stinner
e225bebc14
Revert "bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (gh-13714)" (GH-13780)
...
This reverts commit 6a150bcaeb .
2019-06-03 18:14:24 +02:00
David Carlier
0b9956e916
bpo-37087: Adding native ID support for OpenBSD (GH-13654)
2019-06-03 17:43:33 +02:00
Inada Naoki
395420e2a3
bpo-26219: remove unused code (GH-13775)
...
This code was for deoptimization, which is removed from
PR-12884.
2019-06-03 22:34:15 +09:00
Inada Naoki
91234a1636
bpo-26219: per opcode cache for LOAD_GLOBAL (GH-12884)
...
This patch implements per opcode cache mechanism, and use it in
only LOAD_GLOBAL opcode.
Based on Yury's opcache3.patch in bpo-26219.
2019-06-03 21:30:58 +09:00
Pablo Galindo
8565f6b6db
bpo-35814: Allow unpacking in r.h.s of annotated assignment expressions (GH-13760)
2019-06-03 08:34:20 +01:00
Eric Snow
6a150bcaeb
bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (gh-13714)
2019-06-01 15:39:46 -06:00
Pablo Galindo
938d9a0167
Fix compiler warnings in the pystrehex module (GH-13730)
2019-06-01 21:02:08 +01:00
Pablo Galindo
cd74e66a8c
bpo-37122: Make co->co_argcount represent the total number of positonal arguments in the code object (GH-13726)
2019-06-01 18:08:04 +01:00
Eric Snow
396e0a8d9d
bpo-36818: Add PyInterpreterState.runtime field. (gh-13129)
...
https://bugs.python.org/issue36818
2019-05-31 21:16:47 -06:00
Pablo Galindo
a0c01bf136
bpo-37115: Support annotations in positional-only arguments (GH-13698)
2019-05-31 15:19:50 +01:00
Pablo Galindo
2f58a84104
bpo-37112: Allow compile to work on AST with positional only arguments with defaults (GH-13697)
2019-05-31 14:09:49 +01:00
Jeroen Demeyer
530f506ac9
bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464)
...
Automatically replace
tp_print -> tp_vectorcall_offset
tp_compare -> tp_as_async
tp_reserved -> tp_as_async
2019-05-30 19:13:39 -07:00