MCPcopy Index your code
hub / github.com/python/cpython / foo

Method foo

Lib/test/test_scope.py:172–175  ·  view source on GitHub ↗
(*, a=17)

Source from the content-addressed store, hash-verified

170 # Issue 1409: Initialisation of a cell value,
171 # when it comes from a keyword-only parameter
172 def foo(*, a=17):
173 def bar():
174 return a + 5
175 return bar() + 3
176
177 self.assertEqual(foo(a=42), 50)
178 self.assertEqual(foo(), 25)

Callers

nothing calls this directly

Calls 1

barFunction · 0.50

Tested by

no test coverage detected