On 10/4/2021 9:57 AM, Ammar Askar wrote:
Throwing in another +1 for `except group`.
It's explicit, doesn't introduce new punctuation and avoids confusion with unpacking.
I agree for same reasons. And avoids more bikeshedding.
I checked and if 'except group' is added to keyword.kwlist *before* 'except', the pair is recognized as a keyword phrase by IDLE's syntax highlighter without any change. ('except\s*group' would take care of variable spacing)