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.

Title: Incorrect location of caret in SyntaxError
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.7
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: apostofes, pablogsal
Priority: normal Keywords:

Created on 2022-04-04 11:03 by apostofes, last changed 2022-04-11 14:59 by admin. This issue is now closed.

File name Uploaded Description Edit
Screenshot (1044).png apostofes, 2022-04-04 11:03
Messages (2)
msg416663 - (view) Author: apostofes (apostofes) * Date: 2022-04-04 11:03
arrow should be after `a`
msg416666 - (view) Author: Pablo Galindo Salgado (pablogsal) * (Python committer) Date: 2022-04-04 12:02
No, the location is correct, the string for 'a' is actually closed after the a. This makes a list with the following elements:

'a ,'

b',  '

c',  '

As "b" is a valid prefix for string (bytes) it doesn't fail there, but 'c' isn't so you get the syntax error.
Date User Action Args
2022-04-11 14:59:58adminsetgithub: 91369
2022-04-04 12:02:49pablogsalsetstatus: open -> closed
resolution: not a bug
messages: + msg416666

stage: resolved
2022-04-04 11:25:32AlexWaygoodsetnosy: + pablogsal

type: enhancement -> behavior
title: arrow at wrong place -> Incorrect location of caret in SyntaxError
2022-04-04 11:03:09apostofescreate