On Jan 13, 2005, at 01:13, Bob Gailer wrote:
At 04:48 PM 1/12/2005, Kent Johnson wrote:If you mean for j to be a list of foobar(item) then use j=[foobar(item) for item in x]
The first part of the list comp can be any valid expression.
Does that mean that there are invalid expressions? I'd enjoy seeing an example.
Here's an obvious one:
j = [foobar(item)/0 for item in x]
-- Max
maxnoel_fr at yahoo dot fr -- ICQ #85274019
"Look at you hacker... A pathetic creature of meat and bone, panting and sweating as you run through my corridors... How can you challenge a perfect, immortal machine?"
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor