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 asvetlov
Recipients asvetlov, bjs, chris.jerdonek, graingert, gvanrossum, pagliaricci.m, serhiy.storchaka, yselivanov
Date 2022-02-23.15:29:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1645630185.94.0.177390360502.issue45390@roundup.psfhosted.org>
In-reply-to
Content
Serhiy is right, Condition.wait() has the following code:

        finally:
            # Must reacquire lock even if wait is cancelled
            cancelled = False
            while True:
                try:
                    await self.acquire()
                    break
                except exceptions.CancelledError:
                    cancelled = True

            if cancelled:
                raise exceptions.CancelledError

It swallows CancelledError exceptions from waiters and re-raises CancelledError without the cancellation message.
History
Date User Action Args
2022-02-23 15:29:45asvetlovsetrecipients: + asvetlov, gvanrossum, chris.jerdonek, serhiy.storchaka, yselivanov, graingert, bjs, pagliaricci.m
2022-02-23 15:29:45asvetlovsetmessageid: <1645630185.94.0.177390360502.issue45390@roundup.psfhosted.org>
2022-02-23 15:29:45asvetlovlinkissue45390 messages
2022-02-23 15:29:45asvetlovcreate