On 6 Oct 2021, at 18:13, Larry Hastings <larry@hastings.org> wrote:On 10/6/21 2:34 PM, Łukasz Langa wrote:
We can even make its error message smarter than the default NameError, since -- as I claim -- it's terribly unlikely somebody would mean to name their dynamic exception collection "group".I concede I don't completely understand PEP 654 yet, much less the counter-proposals flying around right now. But it does seem like "except group" has the potential to be ambiguous, given that "group" is a reasonably popular identifier.