Not quite because if something(3) fails, I still want something(4) to run. 


On 10/27/05, Micah Elliott <[EMAIL PROTECTED]> wrote:


If you just want to ignore the exceptions while saving space/typing,
you could equivalently do::

    try:
        something(1)
        something(2)
        # ...
    except:
        pass

or::

    try:
        something(1); something(2); # ...
    except:
        pass

or::

    try:
        for i in range(yourlimit):
            something(i)
    except:
        pass

--
_ _     ___
|V|icah |- lliott  http://micah.elliott.name  [EMAIL PROTECTED]
" "     """



--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to