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 ammar2
Recipients ammar2, benjamin.peterson, emilyemorehouse, eric.smith, gvanrossum
Date 2018-09-15.23:37:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537054620.29.0.956365154283.issue34683@psf.upfronthosting.co.za>
In-reply-to
Content
Added a PR that is an implementation of Benjamin's suggestion. The column offset returned has been made 0-indexed and errors now point to the start of the parsed token.

This makes errors like `def class` show up as

def class
    ^

instead of

def class
        ^

Also added tests for the original example and some more errors from ast.c
History
Date User Action Args
2018-09-15 23:37:00ammar2setrecipients: + ammar2, gvanrossum, eric.smith, benjamin.peterson, emilyemorehouse
2018-09-15 23:37:00ammar2setmessageid: <1537054620.29.0.956365154283.issue34683@psf.upfronthosting.co.za>
2018-09-15 23:37:00ammar2linkissue34683 messages
2018-09-15 23:37:00ammar2create