syntax question - if 1:print 'a';else:print 'b'
csubich.spam.block at spam.subich.block.com
Fri Oct 28 18:25:12 CEST 2005
Steve Holden wrote:
>> On Thu, 2005-10-27 at 14:00, Gregory Piñero wrote:
>>> Not quite because if something(3) fails, I still want something(4) to
> Then the obvious extension:
> for i in range(20):
> but I get the idea that Gregory was thinking of different statements
> rather than calls to the same function with different arguments.
Sorry for the descendant-reply, but the original hasn't hit my news
server yet (I think).
It sounds like Gregory wants a Python equivalent of "on error continue
next," which is really a bad idea almost everywhere.
More information about the Python-list