Quoteing spam / deck.dk, on Mon, Jun 09, 2003 at 03:56:46AM +0900: > >hadn't thought about. System errors if the database suddenly becomes > >unreachable or you run out of RAM - anything. If you don't rollback changes > >in those circumstances, then the half-transaction which you have already > >written may get written later along with a subsequent transaction. > > if a nameerror, typeerror or the like happens then hopefully my program > will instantly crash and the user will scream at me until I fix it. I'm > trying to catch as few exceptions as possible so I may see where they > occur the hard way... it may just be me, but I find it easier to debug > my code if it fails the instant an exception occurs. You can rethrow the exception, after rolling back the transaction, can't you? Sam