cpython/Lib/test/gdb_sample.py
Pablo Galindo Salgado b4903afd4d
bpo-45256: Remove the usage of the C stack in Python to Python calls (GH-28488)
Ths commit inlines calls to Python functions in the eval loop and steals all the arguments in the call from the caller for
performance.
2021-10-09 16:51:30 +01:00

13 lines
159 B
Python

# Sample script for use by test_gdb.py
def foo(a, b, c):
bar(a=a, b=b, c=c)
def bar(a, b, c):
baz(a, b, c)
def baz(*args):
id(42)
foo(1, 2, 3)