←back to thread

101 points _ZeD_ | 1 comments | | HN request time: 0.86s | source
1. kristjansson ◴[] No.44539069[source]
While not nearly as fun as the OP, I’d note that this sort of unpacking is very pleasant in the newish PEP636 match case statements:

https://peps.python.org/pep-0636/#matching-builtin-classes