mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
The names of lambda functions are now properly displayed in pydoc.
This commit is contained in:
parent
1b6726732c
commit
501dd0dd9d
2 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue