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

Function _is_magic

Lib/unittest/mock.py:310–311  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

308
309
310def _is_magic(name):
311 return '__%s__' % name[2:-2] == name
312
313
314class _SentinelObject(object):

Callers 4

__getattr__Method · 0.85
__dir__Method · 0.85
reset_mockMethod · 0.85
create_autospecFunction · 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…