Message408940
> 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. |
|
Date |
User |
Action |
Args |
2021-12-20 02:04:04 | graingert | set | recipients:
+ graingert, ncoghlan, asvetlov, lukasz.langa, Dima.Tisnek, yselivanov |
2021-12-20 02:04:04 | graingert | set | messageid: <1639965844.89.0.311315607752.issue45996@roundup.psfhosted.org> |
2021-12-20 02:04:04 | graingert | link | issue45996 messages |
2021-12-20 02:04:04 | graingert | create | |
|