From 501dd0dd9d271b45e73bf1ba078a6311e1b517c0 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 17 Feb 2006 09:45:40 +0000 Subject: [PATCH] The names of lambda functions are now properly displayed in pydoc. --- Lib/pydoc.py | 2 +- Misc/NEWS | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/pydoc.py b/Lib/pydoc.py index b82e0e7d71..2bcf4c997b 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 == '': - title = 'lambda' + title = self.bold(name) + ' lambda ' argspec = argspec[1:-1] # remove parentheses else: argspec = '(...)' diff --git a/Misc/NEWS b/Misc/NEWS index cd63e3219c..9af61e1054 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -363,6 +363,8 @@ Extension Modules Library ------- +- The names of lambda functions are now properly displayed in pydoc. + - Patch #1412872: zipfile now sets the creator system to 3 (Unix) unless the system is Win32. -- 2.40.0