24 Jun
2020
24 Jun
'20
8 p.m.
On Wed, Jun 24, 2020 at 2:56 AM Greg Ewing
One other thing that the PEP doesn't make clear -- is it possible to combine '=' and ':=' to match a keyword argument with a sub pattern and capture the result? I.e. can you write
case Spam(foo = foo_value := Blarg()):
?
The full grammar in the Appendix makes this clear -- you can't write it like that, but you could write case Spam(foo=(foo_value := Blarg()): I'll get to your other points eventually. -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-c...