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

Method set_slot

Lib/test/test_opcache.py:1630–1633  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

1628 __slots__ = ['x']
1629
1630 def set_slot(n):
1631 c = C()
1632 for i in range(n):
1633 c.x = i
1634
1635 set_slot(_testinternalcapi.SPECIALIZATION_THRESHOLD)
1636

Callers

nothing calls this directly

Calls 1

CClass · 0.70

Tested by

no test coverage detected