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

Function real_name

IPython/core/magic_arguments.py:167–173  ·  view source on GitHub ↗

Find the real name of the magic.

(magic_func)

Source from the content-addressed store, hash-verified

165
166
167def real_name(magic_func):
168 """ Find the real name of the magic.
169 """
170 magic_name = magic_func.__name__
171 if magic_name.startswith('magic_'):
172 magic_name = magic_name[len('magic_'):]
173 return getattr(magic_func, 'argcmd_name', magic_name)
174
175
176class ArgDecorator(object):

Callers 2

test_magic_argumentsFunction · 0.90
construct_parserFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_magic_argumentsFunction · 0.72