try blocks in Python vs. C++
roy at panix.com
Thu Sep 5 19:53:48 EDT 2002
I'm reading Stroustroup's C++ book, and came upon a piece of advice to
avoid using try blocks. I use try blocks a lot in Python and gather
it's common practice among pythonistas.
Is there something fundamentally different about try blocks in Python
and C++ which makes them more attractive to use in one vs. the other?
On the surface, they appear to be virtually identical in just about
every respect. Is it simply a cultural difference? Or just the
author's own personal style?
More information about the Python-list