Commit Graph

19 Commits

Author SHA1 Message Date
TheAnyKey
3ccb117b9a fixed fmt 2020-04-29 17:52:47 -04:00
TheAnyKey
e7ec972ab7 now conversion flags can be followed by a format specifier and added tests 2020-04-29 16:55:21 -04:00
TheAnyKey
c25353c083 minor cleanup 2020-04-29 15:41:04 -04:00
TheAnyKey
34478d3db7 implemented selfdocumenting fstrings and tests from cpython- current handling of quotes is too simple 2020-04-29 15:37:47 -04:00
TheAnyKey
94a7b48560 added initial implementation of self defining expressions to fstring (Python3.8) 2020-04-28 18:41:17 -04:00
philippeitis
e037e37018 Simplify code, have errors match CPython implementation. 2020-02-27 11:34:55 -08:00
philippeitis
a21a2d4773 Handle != in f-string braces, raise EmptyExpression when expected. 2020-02-26 21:09:25 -08:00
Jeong YunWon
7d0d313aa5 &str::to_string -> &str::to_owned for variables 2020-02-05 22:55:34 +09:00
Jeong YunWon
1bac582921 &str::to_string -> &str::to_owned for literals 2020-02-05 22:55:33 +09:00
Abe
30473d3058 Add support for string formatting of floats with ":f" format code
Also adds automatic conversion of int -> float when the ":f"
format code is specified.

Fixes a f-string formatting style regression introduced in #1625.
2019-12-31 18:52:46 -07:00
Aviv Palivoda
8e84a85b0c Add more tests for nested f-string spec 2019-12-27 10:19:07 +02:00
Aviv Palivoda
c3703f08d7 Support expression in f-strings spec 2019-12-27 10:19:07 +02:00
Windel Bouwman
d6c19c1c6a Add location to expressions. Change symboltable to use flags for symbols. 2019-07-20 20:44:38 +02:00
Windel Bouwman
97f982530a parser error handling improvements. 2019-07-06 20:18:18 +02:00
Windel Bouwman
1247a35be9 Improve handling of lexical errors. 2019-05-01 21:05:21 +02:00
coolreader18
c99e843769 Fix a clippy lint I missed 2019-03-01 20:13:50 -06:00
Joey Hain
f050acba73 f-strings: allow ':' and '!' to be used in the expression 2019-02-24 21:13:08 -08:00
Joey Hain
ddc154a1dd f-strings: support conversion flags 2019-02-24 14:37:59 -08:00
Joey Hain
d6e317b185 Move f-string parser into own module and clean up a bit 2019-02-24 13:01:25 -08:00