This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients asvetlov, rhettinger, serhiy.storchaka, uranusjr, yselivanov
Date 2022-02-10.10:04:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Something like:

_unset = ['unset']
class CachedAwaitable:
    def __init__(self, awaitable):
        self.awaitable = awaitable
        self.result = _unset
    def __await__(self):
        if self.result is _unset:
            self.result = yield from self.awaitable.__await__()
        return self.result
Date User Action Args
2022-02-10 10:04:54serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, asvetlov, yselivanov, uranusjr
2022-02-10 10:04:54serhiy.storchakasetmessageid: <>
2022-02-10 10:04:54serhiy.storchakalinkissue46622 messages
2022-02-10 10:04:54serhiy.storchakacreate