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

Function make_deferred_ref_count_obj

Lib/test/test_opcache.py:612–619  ·  view source on GitHub ↗

Create an object that uses deferred reference counting. Only objects that use deferred refence counting may be stored in inline caches in free-threaded builds. This constructs a new class named Foo, which uses deferred reference counting.

()

Source from the content-addressed store, hash-verified

610 self.assert_specialized(instantiate, "CALL_EX_NON_PY_GENERAL")
611
612def make_deferred_ref_count_obj():
613 """Create an object that uses deferred reference counting.
614
615 Only objects that use deferred refence counting may be stored in inline
616 caches in free-threaded builds. This constructs a new class named Foo,
617 which uses deferred reference counting.
618 """
619 return type("Foo", (object,), {})
620
621
622@threading_helper.requires_working_threading()

Callers 2

CClass · 0.85
writeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…