In article <[EMAIL PROTECTED]>, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > >Request for more information >---------------------------- >My request for readers of comp.lang.python is to search your own code >to see if map's None fill-in feature was ever used in real-world code >(not toy examples). I'm curious about the context, how it was used, >and what alternatives were rejected (i.e. did the fill-in feature >improve the code). Likewise, I'm curious as to whether anyone has seen >a zip-style fill-in feature employed to good effect in some other >programming language.
I've counted 63 cases of ``map(None, ...`` in my company's code base. You're probably right that most of them could/should use zip() instead; I see at least a few cases of map(None, field_names, values) but it's not clear what the expectation is for the size of the two lists. (None of the uses were created by me -- I abhor map(). ;-) -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ "19. A language that doesn't affect the way you think about programming, is not worth knowing." --Alan Perlis -- http://mail.python.org/mailman/listinfo/python-list