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

Method is_alias

IPython/core/alias.py:238–240  ·  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

236 return aname if isinstance(aname, Alias) else None
237
238 def is_alias(self, name):
239 """Return whether or not a given name has been defined as an alias"""
240 return self.get_alias(name) is not None
241
242 def undefine_alias(self, name):
243 if self.is_alias(name):

Callers 5

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

Calls 1

get_aliasMethod · 0.95

Tested by 3

test_alias_lifecycleFunction · 0.64
test_store_restoreFunction · 0.64