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

Class T

Lib/test/test_descr.py:617–620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615
616 # Make sure type(x) doesn't call x.__class__.__init__
617 class T(type):
618 counter = 0
619 def __init__(self, *args):
620 T.counter += 1
621 class C(metaclass=T):
622 pass
623 self.assertEqual(T.counter, 1)

Callers 2

test_slicesMethod · 0.70
test_gh146587Method · 0.70

Calls

no outgoing calls

Tested by 2

test_slicesMethod · 0.56
test_gh146587Method · 0.56