Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ _is_magic
Function
_is_magic
Lib/unittest/mock.py:309–310 ·
view source on GitHub ↗
(name)
Source
from the content-addressed store, hash-verified
307
308
309
def
_is_magic(name):
310
return
'__%s__'
% name[2:-2] == name
311
312
313
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