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

Method f

Lib/test/test_descr.py:1648–1650  ·  view source on GitHub ↗

f docstring

(cls, arg)

Source from the content-addressed store, hash-verified

1646 self.assertEqual(D.foo(d, 1), (d, 1))
1647 # Test for a specific crash (SF bug 528132)
1648 def f(cls, arg):
1649 "f docstring"
1650 return (cls, arg)
1651 ff = classmethod(f)
1652 self.assertEqual(ff.__get__(0, int)(42), (int, 42))
1653 self.assertEqual(ff.__get__(0)(42), (int, 42))

Callers 2

test_altmroMethod · 0.45
fMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected