diff options
author | Georg Brandl <georg@python.org> | 2006-02-17 09:47:47 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-02-17 09:47:47 (GMT) |
commit | d057c918c2631ec6bdb0aff69a65aa5fbc7801b0 (patch) | |
tree | 9824d18dd0598f2d8e46529f0d348f18b964f14b /Lib | |
parent | fbf5ff36a437b27a71217760dc02e0b2ac7e5b12 (diff) | |
download | cpython-d057c918c2631ec6bdb0aff69a65aa5fbc7801b0.zip cpython-d057c918c2631ec6bdb0aff69a65aa5fbc7801b0.tar.gz cpython-d057c918c2631ec6bdb0aff69a65aa5fbc7801b0.tar.bz2 |
Bug #1432260: better handle lambda functions' names in pydoc
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/pydoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index ceabb14..0569826 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1242,7 +1242,7 @@ class TextDoc(Doc): argspec = inspect.formatargspec( args, varargs, varkw, defaults, formatvalue=self.formatvalue) if realname == '<lambda>': - title = 'lambda' + title = self.bold(name) + ' lambda ' argspec = argspec[1:-1] # remove parentheses else: argspec = '(...)' |