On Fri, Feb 19, 2021 at 4:08 AM Guido van Rossum <[email protected]> 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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/6VJEHRLKZPYNASAUU2KVXWLA6T6I2H5A/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to