Whoa! What is this is I see? was RE: [albatross-users] impedancemismatch 1

Michael C. Neel neel at mediapulse.com
Fri Jul 4 00:27:58 EST 2003


Thanks for the replies.  I most use this type of thing for setting a var
that may or may not be set (we don't want to overwrite it if set):

	myvar = myvar and myvar or "No value set"

Which I could have:
	
	if not myvar: myvar = "No value set"

but not in a lambda.

I know some see python as bineg a "syntax clean" language - aka, not
perl - but that's only true to a point.  Once you've written ';
'.join(map(lambda a, m=areamap: m[int(a)], areas)) doing and-or seems
highly readable =)

Mike



More information about the Albatross-users mailing list