Bare Excepts

myle mydimle at gmail.com
Sat Jan 2 00:27:57 CET 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