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 zwol
Recipients zwol
Date 2015-02-25.02:58:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1424833099.8.0.762005260502.issue23518@psf.upfronthosting.co.za>
In-reply-to
Content
I tripped over a couple of SyntaxError cases where the diagnostic caret is misplaced.

    >>> While x:
      File "<stdin>", line 1
        While x:
              ^
    SyntaxError: invalid syntax

The caret should point to the capital W in 'While'.

    >>> for x in the range(10):
      File "<stdin>", line 1
        for x in the range(10):
                         ^
    SyntaxError: invalid syntax

The caret should point to the 'the'.
History
Date User Action Args
2015-02-25 02:58:19zwolsetrecipients: + zwol
2015-02-25 02:58:19zwolsetmessageid: <1424833099.8.0.762005260502.issue23518@psf.upfronthosting.co.za>
2015-02-25 02:58:19zwollinkissue23518 messages
2015-02-25 02:58:19zwolcreate