24 May
2016
24 May
'16
12:31 p.m.
On 24/05/16 07:08, Greg Ewing wrote:
On Mon, May 23, 2016 at 7:57 PM, Michael Selik
wrote: def demo(arg): if p, q ?= arg.x, arg.y: # dict structure elif x ?= arg.x and isinstance(x, int) # assignment + guard elif a, b, *_ ?= arg: # tuple structure elif isinstance(arg, Mapping): # nothing new here
I'm unenthusiastic about this -- the above looks like an unreadable mess to me. Agreed.
S