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 graingert
Recipients Dima.Tisnek, asvetlov, graingert, lukasz.langa, ncoghlan, yselivanov
Date 2021-12-20.02:04:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639965844.89.0.311315607752.issue45996@roundup.psfhosted.org>
In-reply-to
Content
> Actually I don't agree with Thomas's logic... his argument feels like consistency for its own sake.

Do you expect sync and async contextmanagers to act differently?

Why would sync contextmanagers raise AttributeError and async contextmanagers raise a RuntimeError?

If it's sensible to guard against invalid re-entry for async contextmanagers then I think it's sensible to apply the same guard to sync contextmanagers.
History
Date User Action Args
2021-12-20 02:04:04graingertsetrecipients: + graingert, ncoghlan, asvetlov, lukasz.langa, Dima.Tisnek, yselivanov
2021-12-20 02:04:04graingertsetmessageid: <1639965844.89.0.311315607752.issue45996@roundup.psfhosted.org>
2021-12-20 02:04:04graingertlinkissue45996 messages
2021-12-20 02:04:04graingertcreate