Thread Previous • Date Previous • Date Next • Thread Next |
Aaron Bentley wrote:
One alternative to using a context manager for transactions is: txn = transaction.begin() try: modify_the_database() finally: # Ah, everything succeeded. txn.commit()
Gah! The horror! Jeroen
Thread Previous • Date Previous • Date Next • Thread Next |