Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
310
def
_is_magic(name):
311
return
'__%s__'
% name[2:-2] == name
312
313
314
class
_SentinelObject(object):
Callers
4
__getattr__
Method · 0.85
__dir__
Method · 0.85
reset_mock
Method · 0.85
create_autospec
Function · 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…