MCPcopy Create free account
hub / github.com/ipython/ipython / remove_builtin

Method remove_builtin

IPython/core/builtin_trap.py:65–70  ·  view source on GitHub ↗

Remove an added builtin and re-set the original.

(self, key, orig)

Source from the content-addressed store, hash-verified

63 bdict[key] = value
64
65 def remove_builtin(self, key, orig):
66 """Remove an added builtin and re-set the original."""
67 if orig is BuiltinUndefined:
68 del builtin_mod.__dict__[key]
69 else:
70 builtin_mod.__dict__[key] = orig
71
72 def activate(self):
73 """Store ipython references in the __builtin__ namespace."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected