Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ ret
Function
ret
extra_tests/snippets/syntax_if_expression.py:1–2 ·
view source on GitHub ↗
(expression)
Source
from the content-addressed store, hash-verified
1
def
ret(expression):
2
return
expression
3
4
5
assert ret(
"0"
if
True
else
"1"
) ==
"0"
Callers
2
syntax_if_expression.py
File · 0.85
pytraverse_arg
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected