From 5950c213b5724f2e24f891ccf132c97201838459 2006-05-03 15:26:56 From: walter.doerwald Date: 2006-05-03 15:26:56 Subject: [PATCH] Use the __xname__ attribute as the title for callable attributes (falling back to __name__, if __xname__ doesn't exist). --- diff --git a/IPython/Extensions/ipipe.py b/IPython/Extensions/ipipe.py index 8b8932b..030d111 100644 --- a/IPython/Extensions/ipipe.py +++ b/IPython/Extensions/ipipe.py @@ -374,7 +374,7 @@ def _attrname(name): elif isinstance(name, basestring): return name elif callable(name): - return name.__name__ + return getattr(name, "__xname__", name.__name__) else: return str(name)