[Python-ideas] Re: Improve traceback for common `with` statement mistake

2021-09-06 Thread Serhiy Storchaka
06.09.21 18:42, Chris Angelico пише: > On Tue, Sep 7, 2021 at 1:36 AM Finn Mason wrote: >> Thank you for testing that. I dug through the change log, and found >> bpo-12022: >> https://bugs.python.org/issue12022 >> It has been fixed in 3.11, but not mentioned in the What's New document. >>

[Python-ideas] Re: Improve traceback for common `with` statement mistake

2021-09-06 Thread Chris Angelico
On Tue, Sep 7, 2021 at 1:36 AM Finn Mason wrote: > > Thank you for testing that. I dug through the change log, and found bpo-12022: > https://bugs.python.org/issue12022 > It has been fixed in 3.11, but not mentioned in the What's New document. > Should it be? > If it was indeed a side effect of

[Python-ideas] Re: Improve traceback for common `with` statement mistake

2021-09-06 Thread Finn Mason
Thank you for testing that. I dug through the change log, and found bpo-12022: https://bugs.python.org/issue12022 It *has* been fixed in 3.11, but not mentioned in the What's New document. Should it be? On Sun, Sep 5, 2021, 5:49 PM Chris Angelico wrote: > On Mon, Sep 6, 2021 at 9:37 AM Finn

[Python-ideas] Re: Improve traceback for common `with` statement mistake

2021-09-05 Thread Chris Angelico
On Mon, Sep 6, 2021 at 9:37 AM Finn Mason wrote: > > Hello all, > > In Python 3.10 and 3.11, exception tracebacks are being greatly improved. I > noticed that there's nothing related to a fairly common (in my personal > experience) cryptic traceback relating to the `with` statement: > > >>>