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): ...@@ -1248,7 +1248,7 @@ class TextDoc(Doc):
argspec = inspect.formatargspec( argspec = inspect.formatargspec(
args, varargs, varkw, defaults, formatvalue=self.formatvalue) args, varargs, varkw, defaults, formatvalue=self.formatvalue)
if realname == '<lambda>': if realname == '<lambda>':
title = 'lambda' title = self.bold(name) + ' lambda '
argspec = argspec[1:-1] # remove parentheses argspec = argspec[1:-1] # remove parentheses
else: else:
argspec = '(...)' argspec = '(...)'
......
...@@ -363,6 +363,8 @@ Extension Modules ...@@ -363,6 +363,8 @@ Extension Modules
Library Library
------- -------
- The names of lambda functions are now properly displayed in pydoc.
- Patch #1412872: zipfile now sets the creator system to 3 (Unix) - Patch #1412872: zipfile now sets the creator system to 3 (Unix)
unless the system is Win32. 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