Brandt Bucher
f185a73249
bpo-38310: Predict BUILD_MAP_UNPACK_WITH_CALL -> CALL_FUNCTION_EX. (GH-16467)
2019-09-28 17:12:49 -07:00
Jeroen Demeyer
7a6873cdb1
bpo-37151: remove special case for PyCFunction from PyObject_Call (GH-14684)
...
bpo-37151: remove special case for PyCFunction from PyObject_Call
Alse, make the undocumented function PyCFunction_Call an alias
of PyObject_Call and deprecate it.
2019-09-11 12:01:01 +01:00
Pablo Galindo
a511c7a496
bpo-38090: Fix reference leak in ceval.c (GH-15848)
2019-09-10 14:32:54 +01:00
Anthony Sottile
65366bc8bd
bpo-20490: Improve circular import error message (GH-15308)
2019-09-09 08:17:50 -07:00
Joannah Nanjekye
74b662cf20
bpo-15088 : Remove PyGen_NeedsFinalizing() (GH-15702)
...
Remove PyGen_NeedsFinalizing(): it was not
documented, tested or used anywhere within CPython after
the implementation of PEP 442.
2019-09-06 17:41:38 +02:00
Zackery Spytz
ce6a070414
bpo-34880: Add the LOAD_ASSERTION_ERROR opcode. (GH-15073)
...
Fix assert statement misbehavior if AssertionError is shadowed.
2019-08-25 12:44:09 +03:00
Jeroen Demeyer
0567786d26
bpo-37540: vectorcall: keyword names must be strings (GH-14682)
...
The fact that keyword names are strings is now part of the vectorcall and `METH_FASTCALL` protocols. The biggest concrete change is that `_PyStack_UnpackDict` now checks that and raises `TypeError` if not.
CC @markshannon @vstinner
https://bugs.python.org/issue37540
2019-08-16 03:41:27 -07:00
Jeroen Demeyer
59ad110d7a
bpo-37547: add _PyObject_CallMethodOneArg (GH-14685)
2019-07-11 17:59:05 +09:00
Jeroen Demeyer
0d722f3cd6
bpo-36974: separate vectorcall functions for each calling convention (GH-13781)
2019-07-05 14:48:24 +02:00
Jeroen Demeyer
196a530e00
bpo-37483: add _PyObject_CallOneArg() function ( #14558 )
2019-07-04 19:31:34 +09:00
Jeroen Demeyer
469d1a70ce
bpo-37484: use _PyObject_Vectorcall for __exit__ (GH-14557)
2019-07-03 19:52:21 +09:00
Jörn Heissler
c8a35417db
bpo-35224: Reverse evaluation order of key: value in dict comprehensions (GH-14139)
...
… as proposed in PEP 572; key is now evaluated before value.
https://bugs.python.org/issue35224
2019-06-22 07:40:55 -07:00
Jeroen Demeyer
7e1a9aacff
bpo-37151: remove _PyCFunction_FastCallDict (GH-14269)
2019-06-21 00:38:45 +09:00
Jeroen Demeyer
b2f94730d9
bpo-37249: add declaration of _PyObject_GetMethod (GH-14015)
2019-06-14 19:37:15 +09: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
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
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
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
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
Jeroen Demeyer
37788bc23f
bpo-36974: rename _FastCallKeywords -> _Vectorcall (GH-13653)
2019-05-30 15:11:22 +02: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