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 Alexey.Spiridonov
Recipients Alexey.Spiridonov
Date 2013-04-03.23:13:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1365030839.21.0.0882950227622.issue17631@psf.upfronthosting.co.za>
In-reply-to
Content
This happens because the block search algorithm seems not to be handling lambda arguments correctly.

$ cat x.py
import inspect

def a(y):
    print inspect.getsource(y)
    print inspect.getsourcelines(y)
    
a(
    lambda x:
        x * 
        3
)

$ python x.py
    lambda x:

(['    lambda x:\n'], 8)
History
Date User Action Args
2013-04-03 23:13:59Alexey.Spiridonovsetrecipients: + Alexey.Spiridonov
2013-04-03 23:13:59Alexey.Spiridonovsetmessageid: <1365030839.21.0.0882950227622.issue17631@psf.upfronthosting.co.za>
2013-04-03 23:13:59Alexey.Spiridonovlinkissue17631 messages
2013-04-03 23:13:59Alexey.Spiridonovcreate