
Oct. 20, 2020
5:15 p.m.
On Tue, 20 Oct 2020 at 17:04, Steven D'Aprano <steve@pearwood.info> wrote:
In general, Python bindings are *all or nothing* -- either all the targets get bound, or none of them.
I wonder if this could work with the proposed pattern matching statement. The current proposal doesn't allow it, but maybe a future enhancement would make something like this possible: match the_input: case "{one} {two} {three}": print("Got three numbers", one, two, three) You'd need some sort of "matching object" rather than a string there (strings already have a meaning in the proposal) but maybe something could be made to work? Paul