MCPcopy Index your code
hub / github.com/RustPython/RustPython / c

Class c

Lib/test/test_sys.py:1678–1688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1676 def func(): pass
1677 check(func, size('16Pi'))
1678 class c():
1679 @staticmethod
1680 def foo():
1681 pass
1682 @classmethod
1683 def bar(cls):
1684 pass
1685 # staticmethod
1686 check(foo, size('PP'))
1687 # classmethod
1688 check(bar, size('PP'))
1689 # generator
1690 def get_gen(): yield 1
1691 check(get_gen(), size('6P4c' + INTERPRETER_FRAME + 'P'))

Callers 15

fMethod · 0.70
test_metaclassMethod · 0.70
_test_one_classMethod · 0.70
test___code__Method · 0.70
bMethod · 0.70
test_copy_pickleMethod · 0.70
test_bad_pathlikeMethod · 0.70
op_sequenceFunction · 0.70
test_chainMethod · 0.70
_create_formattersFunction · 0.50

Calls 1

checkFunction · 0.70

Tested by 15

fMethod · 0.56
test_metaclassMethod · 0.56
_test_one_classMethod · 0.56
test___code__Method · 0.56
bMethod · 0.56
test_copy_pickleMethod · 0.56
test_bad_pathlikeMethod · 0.56
op_sequenceFunction · 0.56
test_chainMethod · 0.56