[issue37483] Add PyObject_CallOneArg()
Jeroen Demeyer
report at bugs.python.org
Wed Jul 3 10:31:32 EDT 2019
Jeroen Demeyer <J.Demeyer at UGent.be> added the comment:
Test of stack usage:
from _testcapi import stack_pointer
class D(dict):
def __missing__(self, key):
sp = stack_pointer()
print(f"stack usage = {TOP - sp}")
return None
d = D()
TOP = stack_pointer()
d[0]
**before**: stack usage = 1296
**after**: stack usage = 976
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37483>
_______________________________________
More information about the Python-bugs-list
mailing list