On Fri, Feb 19, 2021 at 4:08 AM Guido van Rossum <gu...@python.org> wrote: > Can you try this? > > async def __sleep(self): > await None
Perhaps you meant this? async def __sleep0(): await None Either way, `await None` raises "TypeError: object NoneType can't be used in 'await' expression". Maybe I misunderstood your suggestion? -- Luciano Ramalho | Author of Fluent Python (O'Reilly, 2015) | http://shop.oreilly.com/product/0636920032519.do | Technical Principal at ThoughtWorks | Twitter: @ramalhoorg _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/6VJEHRLKZPYNASAUU2KVXWLA6T6I2H5A/ Code of Conduct: http://python.org/psf/codeofconduct/