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.

Author ethan.furman
Recipients amaury.forgeotdarc, ethan.furman, facundobatista, jcea, r.david.murray
Date 2013-10-17.02:04:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381975443.75.0.117490086337.issue19272@psf.upfronthosting.co.za>
In-reply-to
Content
Jesús Cea Avión added the comment:
> 
> If at your "top level" (module) you do:
> 
> """
> a = lambda x: 2*x
> """
> 
> You don't have an anonymous function, but a function called "a".

Actually, you do have an anonymous function, which happens to be bound to the name "a".

Compare:

    --> def a():
    ...     pass
    --> a.__name__
    'a'

and 

    --> a = lambda: None
    --> a.__name__
    '<lambda>'
History
Date User Action Args
2013-10-17 02:04:03ethan.furmansetrecipients: + ethan.furman, facundobatista, jcea, amaury.forgeotdarc, r.david.murray
2013-10-17 02:04:03ethan.furmansetmessageid: <1381975443.75.0.117490086337.issue19272@psf.upfronthosting.co.za>
2013-10-17 02:04:03ethan.furmanlinkissue19272 messages
2013-10-17 02:04:03ethan.furmancreate