summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-02-17 09:47:47 (GMT)
committerGeorg Brandl <georg@python.org>2006-02-17 09:47:47 (GMT)
commitd057c918c2631ec6bdb0aff69a65aa5fbc7801b0 (patch)
tree9824d18dd0598f2d8e46529f0d348f18b964f14b /Lib
parentfbf5ff36a437b27a71217760dc02e0b2ac7e5b12 (diff)
downloadcpython-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-xLib/pydoc.py2
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 = '(...)'