The names of lambda functions are now properly displayed in pydoc.
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 @@
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 = '(...)'
diff --git a/Misc/NEWS b/Misc/NEWS
index cd63e32..9af61e1 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -363,6 +363,8 @@
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.