summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-02-17 09:45:40 (GMT)
committerGeorg Brandl <georg@python.org>2006-02-17 09:45:40 (GMT)
commit501dd0dd9d271b45e73bf1ba078a6311e1b517c0 (patch)
tree91e6b0bc9966fcdf2f845fcf81ca248426993d7a /Lib/pydoc.py
parent1b6726732c63d69f45f80deabe8435c2a6347db4 (diff)
downloadcpython-501dd0dd9d271b45e73bf1ba078a6311e1b517c0.zip
cpython-501dd0dd9d271b45e73bf1ba078a6311e1b517c0.tar.gz
cpython-501dd0dd9d271b45e73bf1ba078a6311e1b517c0.tar.bz2
The names of lambda functions are now properly displayed in pydoc.
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index b82e0e7..2bcf4c9 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -1248,7 +1248,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 = '(...)'