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

Function sortkey

docs/autogen_magics.py:33–33  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

31
32# Case insensitive sort by name
33def sortkey(s): return s[0].lower()
34
35for name, func in sorted(magics['line'].items(), key=sortkey):
36 if isinstance(func, Alias) or isinstance(func, MagicAlias):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected