Kaydet (Commit) 501dd0dd authored tarafından Georg Brandl's avatar Georg Brandl

The names of lambda functions are now properly displayed in pydoc.

üst 1b672673
......@@ -1248,7 +1248,7 @@ class TextDoc(Doc):
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 = '(...)'
......
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment