mirror of
https://github.com/python/cpython.git
synced 2025-11-06 00:22:07 +00:00
gh-117174: Add a new route in linecache to fetch interactive source code (GH-117500)
(cherry picked from commit a931a8b324)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
13 lines
189 B
Python
13 lines
189 B
Python
# Sample script for use by test_gdb
|
|
from _typing import _idfunc
|
|
|
|
def foo(a, b, c):
|
|
bar(a=a, b=b, c=c)
|
|
|
|
def bar(a, b, c):
|
|
baz(a, b, c)
|
|
|
|
def baz(*args):
|
|
_idfunc(42)
|
|
|
|
foo(1, 2, 3)
|