From d057c918c2631ec6bdb0aff69a65aa5fbc7801b0 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 17 Feb 2006 09:47:47 +0000 Subject: Bug #1432260: better handle lambda functions' names in pydoc --- Lib/pydoc.py | 2 +- Misc/NEWS | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 == '': - title = 'lambda' + title = self.bold(name) + ' lambda ' argspec = argspec[1:-1] # remove parentheses else: argspec = '(...)' diff --git a/Misc/NEWS b/Misc/NEWS index 5a24861..af3c3ad 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -74,6 +74,9 @@ Extension Modules Library ------- +- Bug #1432260: The names of lambda functions are now properly displayed + in pydoc. + - Bug #1371247: Update Windows locale identifiers in locale.py. - Bug #1394565: SimpleHTTPServer now doesn't choke on query parameters -- cgit v0.12