Why you specify type and name of the exception in your custom
exceptions,
but not in built in exceptions

    except IOError:
        print "no file by the name ccy_rates*.txt"

    except MyError, e:
                print e.msg

Also, when you do:

try: raise MyError(23)

In "try: MyError(23) ", you are calling MyError class, but actually
get instantiated in except MyError, e: ?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to