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

Function meth

Lib/test/test_import/__init__.py:172–176  ·  view source on GitHub ↗
(self, _meth=meth)

Source from the content-addressed store, hash-verified

170 """Decorator to skip if single-phase init modules are not supported."""
171 if not isinstance(meth, type):
172 def meth(self, _meth=meth):
173 try:
174 return _meth(self)
175 finally:
176 restore__testsinglephase()
177 meth = cpython_only(meth)
178 msg = "gh-117694: free-threaded build does not currently support single-phase init modules in sub-interpreters"
179 meth = requires_gil_enabled(msg)(meth)

Callers 15

__mro_entries__Method · 0.85
_parse_doctype_subsetMethod · 0.85
_writeMethod · 0.85
_dispatchMethod · 0.85
test_surrogatesMethod · 0.85
test_tzinfo_nowMethod · 0.85
test_tzinfo_utcnowMethod · 0.85
_testRegularFileMethod · 0.85
_testEmptyFileSendMethod · 0.85

Calls 1

restore__testsinglephaseFunction · 0.85

Tested by 15

test_surrogatesMethod · 0.68
test_tzinfo_nowMethod · 0.68
test_tzinfo_utcnowMethod · 0.68
_testRegularFileMethod · 0.68
_testEmptyFileSendMethod · 0.68
_testOffsetMethod · 0.68
_testCountMethod · 0.68
_testCountSmallMethod · 0.68
_testCountWithOffsetMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…