[New-bugs-announce] [issue37147] f-string debugging f"{x=[}" adds [filename:lineno] as prefix
Aldwin Pollefeyt
report at bugs.python.org
Tue Jun 4 04:54:23 EDT 2019
New submission from Aldwin Pollefeyt <aldwinaldwin at gmail.com>:
>From this idea [0] by Karthikeyan Singaravelan and added to his code in hack [1].
name = "karthikeyan"
print(f"{name =[}")
print(f"{name=[}")
print(f"{age = [}")
print(f"{age= [}")
[prog.py:2] name ='karthikeyan'
[prog.py:3] name='karthikeyan'
[prog.py:4] name = 'karthikeyan'
[prog.py:5] name= 'karthikeyan'
[0] https://tirkarthi.github.io/programming/2019/05/08/f-string-debugging.html
[1] https://github.com/tirkarthi/cpython/commit/d0fcbe67f6bb8ad60744b0a4973c4dc69fda65a9
----------
messages: 344533
nosy: aldwinaldwin, xtreak
priority: normal
severity: normal
status: open
title: f-string debugging f"{x=[}" adds [filename:lineno] as prefix
type: enhancement
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37147>
_______________________________________
More information about the New-bugs-announce
mailing list