Working around a lack of 'goto' in python

Roger Binns rogerb at rogerbinns.com
Tue Mar 9 23:23:15 EST 2004


Roy Smith wrote:
> I find it interesting that many
> people who come from a C++ background (especially those who migrated
> from C) tend to dislike exceptions.  It must have been something in the
> water when they were growing up :-)

It also affects former Java weenies.  As a Java programmer you expect
your code to be run under a JIT (and not interpretted) and you are
aware that exceptions are significantly more expensive than straight
forward code.  This is less of an issue in Python as interpretters
don't tend to have as expensive exceptions compared to "normal" code.

http://www.javaworld.com/javaworld/jw-08-2000/jw-0818-exceptions-p2.html

(2/3rds of the way down)

Roger





More information about the Python-list mailing list