Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

FYI you can use ast CLI:

$ echo 'f"is {x:d}"' | ./python -m ast
Module(
   body=[
      Expr(
         value=JoinedStr(
            values=[
               Constant(value='is ', kind=None),
               FormattedValue(
                  value=Name(id='x', ctx=Load()),
                  conversion=-1,
                  format_spec=JoinedStr(
                     values=[
                        Constant(value='d', kind=None)]))]))],
   type_ignores=[])

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue39760>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to