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

Method retrieve_alias

IPython/core/alias.py:252–258  ·  view source on GitHub ↗

Retrieve the command to which an alias expands.

(self, name)

Source from the content-addressed store, hash-verified

250 self.undefine_alias(name)
251
252 def retrieve_alias(self, name):
253 """Retrieve the command to which an alias expands."""
254 caller = self.get_alias(name)
255 if caller:
256 return caller.cmd
257 else:
258 raise ValueError('%s is not an alias' % name)

Callers 2

test_alias_lifecycleFunction · 0.80
storeMethod · 0.80

Calls 1

get_aliasMethod · 0.95

Tested by 1

test_alias_lifecycleFunction · 0.64