how does exception mechanism work?

2005-12-12 Thread bobueland
Sometimes the best way to understand something is to understand the mechanism behind it. Maybe that is true for exceptions. This is a model I have right now (which probably is wrong) 1. When a runtime error occurs, some function (probably some class method) in Python is called behind the scenes.

Re: how does exception mechanism work?

2005-12-12 Thread Paul Rubin
[EMAIL PROTECTED] writes: Is this model correct or wrong? Where can I read about the mechanism behind exceptions? Usually you push exception handlers and finally clauses onto the activation stack like you push return addresses for function calls. When something raises an exception, you scan the

Re: how does exception mechanism work?

2005-12-12 Thread Tom Anderson
On Mon, 12 Dec 2005, it was written: [EMAIL PROTECTED] writes: Is this model correct or wrong? Where can I read about the mechanism behind exceptions? Usually you push exception handlers and finally clauses onto the activation stack like you push return addresses for function calls. When

Re: how does exception mechanism work?

2005-12-12 Thread Ben Hutchings
Tom Anderson [EMAIL PROTECTED] wrote: On Mon, 12 Dec 2005, it was written: [EMAIL PROTECTED] writes: Is this model correct or wrong? Where can I read about the mechanism behind exceptions? Usually you push exception handlers and finally clauses onto the activation stack like you push