This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: (lambda:"foo").func_doc
Type: behavior Stage:
Components: Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: arigo, benjamin.peterson
Priority: low Keywords: easy

Created on 2010-03-17 16:28 by arigo, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg101233 - (view) Author: Armin Rigo (arigo) * (Python committer) Date: 2010-03-17 16:28
Lambdas are a bit confused about their docstrings.  Usually they don't have any, but:

    >>> (lambda x: "foo"+x).func_doc

    'foo'
msg101243 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2010-03-17 20:43
Fixed in r79034.
History
Date User Action Args
2022-04-11 14:56:58adminsetgithub: 52411
2010-03-17 20:43:19benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg101243

resolution: fixed
2010-03-17 16:28:30arigocreate