Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ f
Function
f
recipes/Python/521874_Functions_positional_only/recipe-521874.py:28–28 ·
view source on GitHub ↗
(x, y=1)
Source
from the content-addressed store, hash-verified
26
27
>>> @posonly
28
...
def
f(x, y=1):
return
x, y
29
...
30
>>> f(1)
31
(1, 1)
Callers
5
recipe-521874.py
File · 0.70
bound_f
Function · 0.50
wrap
Function · 0.50
run
Method · 0.50
new_f
Method · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected