raise or not to raise [Newbie]

Jacol jgrzebyta at NO.gazeta.pl.SPAM
Sat Feb 3 15:54:10 EST 2007


Hello everybody!

I found this:
http://mail.python.org/pipermail/python-list/1999-July/006344.html

My question concernings "callerFunc" and is more general what is difference
between:

        try:
                raise "xyz"
        except "xyz":
                print "This is smthing"

and simpler:
        print "This is smthing"

Both give the same result.
I don't understand manuals in this point.

Thanks a lot,
Jacek



More information about the Python-list mailing list