Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ipython/ipython
/ A
Class
A
IPython/core/tests/test_magic.py:540–544 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
538
def
test_reset_hard():
539
monitor = []
540
class
A(object):
541
def
__del__(self):
542
monitor.append(1)
543
def
__repr__(self):
544
return
"<A instance>"
545
546
_ip.user_ns[
"a"
] = A()
547
_ip.run_cell(
"a"
)
Callers
2
test_reset_hard
Function · 0.70
test_whos
Function · 0.70
Calls
no outgoing calls
Tested by
2
test_reset_hard
Function · 0.56
test_whos
Function · 0.56