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
Jeroen Demeyer
37788bc23f
bpo-36974: rename _FastCallKeywords -> _Vectorcall (GH-13653)
2019-05-30 15:11:22 +02:00
Zackery Spytz
249b7d59d8
bpo-20602: Do not clear sys.flags and sys.float_info during shutdown (GH-8096)
...
There is no need to clear these immutable objects during shutdown.
2019-05-30 13:08:24 +02:00
Gregory P. Smith
0c2f930564
bpo-22385: Support output separators in hex methods. ( #13578 )
...
* bpo-22385: Support output separators in hex methods.
Also in binascii.hexlify aka b2a_hex.
The underlying implementation behind all hex generation in CPython uses the
same pystrhex.c implementation. This adds support to bytes, bytearray,
and memoryview objects.
The binascii module functions exist rather than being slated for deprecation
because they return bytes rather than requiring an intermediate step through a
str object.
This change was inspired by MicroPython which supports sep in its binascii
implementation (and does not yet support the .hex methods).
https://bugs.python.org/issue22385
2019-05-29 11:46:58 -07:00
Jeroen Demeyer
aacc77fbd7
bpo-36974: implement PEP 590 (GH-13185)
...
Co-authored-by: Jeroen Demeyer <J.Demeyer@UGent.be >
Co-authored-by: Mark Shannon <mark@hotpy.org >
2019-05-29 20:31:52 +02:00
Eric V. Smith
f83d1dbd3b
bpo-37070: Cleanup fstring debug handling (GH-13607)
...
* Clean up some comments, fix potential memory leaks, clarify literal and expr_text.
2019-05-29 03:55:44 -04:00
Guido van Rossum
77f0ed7a42
bpo-37072: Fix crash in PyAST_FromNodeObject() when flags is NULL ( #13634 )
...
I'm confident that this fixes the reported crash. flags=NULL is treated as using the latest minor version.
https://bugs.python.org/issue37072
2019-05-28 16:44:58 -07:00
Dino Viehland
415406999d
bpo-37001: Makes symtable.symtable have parity with compile for input ( #13483 )
...
* Makes symtable.symtable have parity for accepted datatypes
for source code as compile()
* Add NEWS blurb
2019-05-28 16:21:17 -07:00
Victor Stinner
a85a1d337d
bpo-36829: sys.excepthook and sys.unraisablehook flush (GH-13620)
...
sys.excepthook() and sys.unraisablehook() now explicitly flush the
file (usually sys.stderr).
If file.flush() fails, sys.excepthook() silently ignores the error,
whereas sys.unraisablehook() logs the new exception.
2019-05-28 16:01:17 +02:00
Victor Stinner
9ea277a788
bpo-36900: Fix compilation on HP-UX (GH-13614)
...
dynload_hpux.c: add #include "pycore_pystate.h" for
_PyInterpreterState_GET_UNSAFE().
2019-05-28 12:24:00 +02:00