Is tuple unpacking incompatible with `map'?

François Pinard pinard at IRO.UMontreal.CA
Wed Oct 20 17:39:46 EDT 1999


"Gordon McMillan" <gmcm at hypernet.com> écrit:

> >>> def postsort((key, item)):
> ... 	return item

Of course, you are so right!  This is exactly what I was looking for.

> Tuple unpacking is not quite as automatic as you are assuming:

The real problem is that I was kind of sleeping awake, my question was
probably a kind of intellectual snore.  Sorry for my noise...  And thanks!

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard




More information about the Python-list mailing list