The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.python
From: Marc 'BlackJack' Rintsch <bj_...@gmx.net>
Date: Sat, 26 May 2007 13:34:32 +0200
Local: Sat, May 26 2007 9:34 pm
Subject: Re: Newbie: Struggling again 'map'
In <1180173252.906992.262...@q75g2000hsh.googlegroups.com>, mosscliffe
wrote: > for x,y in map(None, lista, listb): # Also fine - extends as `map()` expects a function as first argument that will be applied to the > expected > print "MAP:", x, "<<x y>>", y > for x,y in map("N/A", lista, listb): ########## Fails - Can not call a > def fillwith(fillchars): > for x,y in map(fillwith("N/A"), lista, listb): ########## Fails also - elements in the other the arguments which have to be iterable. That you can give `None` as a function and the resulting behavior is IMHO a very ugly thing and has not much to to with the semantics expected from a `map()` function. The `None` is not the default fill value but a placeholder for the identity function. Ciao, You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||