[Python-checkins] r42439 - in python/trunk: Lib/pydoc.py Misc/NEWS

georg.brandl python-checkins at python.org
Fri Feb 17 10:45:41 CET 2006


Author: georg.brandl
Date: Fri Feb 17 10:45:40 2006
New Revision: 42439

Modified:
   python/trunk/Lib/pydoc.py
   python/trunk/Misc/NEWS
Log:
The names of lambda functions are now properly displayed in pydoc.


Modified: python/trunk/Lib/pydoc.py
==============================================================================
--- python/trunk/Lib/pydoc.py	(original)
+++ python/trunk/Lib/pydoc.py	Fri Feb 17 10:45:40 2006
@@ -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 = '(...)'

Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Fri Feb 17 10:45:40 2006
@@ -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.
 


More information about the Python-checkins mailing list