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 jamesls
Recipients ajaksu2, ggenellina, jamesls
Date 2013-05-23.02:56:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369277801.02.0.619167439188.issue6700@psf.upfronthosting.co.za>
In-reply-to
Content
I confirmed the issue in tip.  One of the issues with the original patch is
that it modifies the tokeneater method used by getblock which won't work
if the first token is any of the special cased tokens in the original patch
('@', 'def', 'class').  I've added additional tests that show where the
original patch fails.

An alternative approach is to check in getsourcelines whether or not we're
dealing with a traceback or frame object in the module scope, and if so,
return the lines of the entire module.  I've attached an updated patch
that implements this along with additional tests.
History
Date User Action Args
2013-05-23 02:56:41jameslssetrecipients: + jamesls, ggenellina, ajaksu2
2013-05-23 02:56:41jameslssetmessageid: <1369277801.02.0.619167439188.issue6700@psf.upfronthosting.co.za>
2013-05-23 02:56:40jameslslinkissue6700 messages
2013-05-23 02:56:40jameslscreate