mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-29 19:24:57 +08:00
* Sync canonical Python 3.15 test maintenance Apply update_lib cleanup and accounting, warning, and documentation updates while preserving stack-safety, Cargo path, and missing-native adaptations. Remove only unused helper and import remnants; do not add new tests or runtime claims. Assisted-by: OpenAI Codex: model version unavailable * Sync canonical SystemTap companion fixtures Copy the existing expected trace and GC probe template through update_lib to match the already canonical consumer and Python input. Preserve the tracing capability gate; validate source consistency without invoking tracing tools or claiming provider support. Assisted-by: OpenAI Codex: model version unavailable --------- Co-authored-by: Codex <codex@openai.com>
31 lines
519 B
Python
Vendored
31 lines
519 B
Python
Vendored
def function_1():
|
|
function_3(1, 2)
|
|
|
|
# Check stacktrace
|
|
def function_2():
|
|
function_1()
|
|
|
|
# CALL with positional args
|
|
def function_3(dummy, dummy2):
|
|
pass
|
|
|
|
# CALL_KW (keyword arguments)
|
|
def function_4(**dummy):
|
|
return 1
|
|
return 2 # unreachable
|
|
|
|
# CALL_FUNCTION_EX (unpacking)
|
|
def function_5(dummy, dummy2, **dummy3):
|
|
if False:
|
|
return 7
|
|
return 8
|
|
|
|
def start():
|
|
function_1()
|
|
function_2()
|
|
function_3(1, 2)
|
|
function_4(test=42)
|
|
function_5(*(1, 2), **{"test": 42})
|
|
|
|
start()
|