]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Move f-string compilation of the expression earlier, before the conversion character...
authorEric V. Smith <eric@trueblade.com>
Wed, 23 Sep 2015 11:49:00 +0000 (07:49 -0400)
committerEric V. Smith <eric@trueblade.com>
Wed, 23 Sep 2015 11:49:00 +0000 (07:49 -0400)
commit1d44c41b0cc183603b31ac943ef452456bef089f
tree7b8dcbf17ff2c20b6e9adc7c581305668ef9ff70
parent3a1a8d04244cb5d98e8bbeaff131a705f84b8521
Move f-string compilation of the expression earlier, before the conversion character and format_spec are checked. This allows for error messages that more closely match what a user would expect.
Lib/test/test_fstring.py
Python/ast.c