mirror of https://github.com/python/cpython
The names of lambda functions are now properly displayed in pydoc.
This commit is contained in:
parent
1b6726732c
commit
501dd0dd9d
|
@ -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 = '(...)'
|
||||
|
|
Loading…
Reference in New Issue