From: Georg Brandl Date: Fri, 17 Feb 2006 09:47:47 +0000 (+0000) Subject: Bug #1432260: better handle lambda functions' names in pydoc X-Git-Tag: v2.4.3c1~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d057c918c2631ec6bdb0aff69a65aa5fbc7801b0;p=thirdparty%2FPython%2Fcpython.git Bug #1432260: better handle lambda functions' names in pydoc --- diff --git a/Lib/pydoc.py b/Lib/pydoc.py index ceabb1444653..056982699a6d 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 5a248613d627..af3c3ad0e08b 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