Coding choices

Daniel Klein danielk at aracnet.com
Sun Mar 25 12:23:57 EST 2001


I've seen Python coded in both of these manners. Is there some advantage of one
over the other? Or is it just preference?

if condition:
    return something
raise SomeException

if condition:
    return something
else:
    raise SomeException

Thanks,
Daniel Klein

"Earth is full. Go home!"



More information about the Python-list mailing list