Did not mean that it is easy, but it seems achievable and although a deep dig might be needed, my gut feeling is that it is possible to achieve this fairly elegantly. I might be wrong ofc.
However, this seems orthogonal to everything else I wrote. Just added it for the sake of completeness, this could be a nice one to have further along the lines, given def-eval was implemented. Then complete statements would be possible via expressions with full functionality. > On 21 Jul 2023, at 12:19, Chris Angelico <ros...@gmail.com> wrote: > > On Fri, 21 Jul 2023 at 19:15, Dom Grigonis <dom.grigo...@gmail.com> wrote: >> However, it could be done differently as well. If `Break()` takes effect in >> the scope where it is evaluated. Then: >> > > You say that as if it's easy. How would this work? How do you have a > function that, when called, causes the current loop to be broken out > of? > > ChrisA _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/62WEK5BVRSXJ7TPOK4M7BDPDVDTQNZKL/ Code of Conduct: http://python.org/psf/codeofconduct/