10 Aug
2010
10 Aug
'10
4:45 p.m.
2010/8/10 Scott Dial
You are responding to his request for a specific example with a generic class of examples, which is what prompted his request for a specific example in the first place. Please give a *specific* example and be prepared to be told that you are going about it the wrong way, since, at this point, nobody has replied as having recognized this as a problem they've encountered before.
My exact need is to count the not-None elements in a list. My current solution is, as described before: sum(1 for e in iterator if not e) -- Alexandru Moșoi http://www.alexandru.mosoi.ro/