[issue28942] await expressions in f-strings

Yury Selivanov report at bugs.python.org
Wed Dec 20 19:06:00 EST 2017


Yury Selivanov <yselivanov at gmail.com> added the comment:

Looks like it's working now:

    import asyncio


    async def foo():
        return 32


    async def bar():
        print(f'{await foo()}')


    asyncio.run(bar())

Prints:

    32

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type:  -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue28942>
_______________________________________


More information about the Python-bugs-list mailing list