[issue30465] FormattedValue expressions have wrong lineno and col_offset information

Łukasz Langa report at bugs.python.org
Wed May 24 18:53:37 EDT 2017


New submission from Łukasz Langa:

f-strings are computed in a separate compiler step. This makes their lineno and col_offset information wrong. This is problematic for flake8 which reports problems inside f-strings on the wrong line (typically the first one).

Attached patch fixes the issue.

----------
assignee: lukasz.langa
keywords: 3.6regression
messages: 294408
nosy: lukasz.langa
priority: normal
severity: normal
stage: patch review
status: open
title: FormattedValue expressions have wrong lineno and col_offset information
type: behavior
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30465>
_______________________________________


More information about the Python-bugs-list mailing list