Bare Excepts

myle mydimle at gmail.com
Fri Jan 1 18:27:57 EST 2010


Why we should prefer ``if: ...'' over  a ``try: ... except something:
pass'' block?
In http://wiki.python.org/moin/PythonSpeed/PerformanceTips#InitializingDictionaryElements
it is stated that a try catch block is faster if more often no
exception occurs.

Happy new year,
Dimitris Leventeas



More information about the Python-list mailing list