MCPcopy Index your code
hub / github.com/ipython/ipython / is_alias

Method is_alias

IPython/core/alias.py:248–250  ·  view source on GitHub ↗

Return whether or not a given name has been defined as an alias

(self, name)

Source from the content-addressed store, hash-verified

246 return aname if isinstance(aname, Alias) else None
247
248 def is_alias(self, name):
249 """Return whether or not a given name has been defined as an alias"""
250 return self.get_alias(name) is not None
251
252 def undefine_alias(self, name):
253 if self.is_alias(name):

Callers 5

undefine_aliasMethod · 0.95
rehashxMethod · 0.80
test_store_restoreFunction · 0.80
test_alias_lifecycleFunction · 0.80

Calls 1

get_aliasMethod · 0.95

Tested by 3

test_store_restoreFunction · 0.64
test_alias_lifecycleFunction · 0.64