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

Method retrieve_alias

IPython/core/alias.py:262–268  ·  view source on GitHub ↗

Retrieve the command to which an alias expands.

(self, name)

Source from the content-addressed store, hash-verified

260 self.undefine_alias(name)
261
262 def retrieve_alias(self, name):
263 """Retrieve the command to which an alias expands."""
264 caller = self.get_alias(name)
265 if caller:
266 return caller.cmd
267 else:
268 raise ValueError('%s is not an alias' % name)

Callers 2

storeMethod · 0.80
test_alias_lifecycleFunction · 0.80

Calls 1

get_aliasMethod · 0.95

Tested by 1

test_alias_lifecycleFunction · 0.64