python - fe: Add 'with' statement support to Transact.

From: jwp(at)pgfoundry(dot)org (James William Pye)
To: pgsql-committers(at)postgresql(dot)org
Subject: python - fe: Add 'with' statement support to Transact.
Date: 2006-05-01 00:19:58
Message-ID: 20060501001958.4908286C5BD@pgfoundry.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Add 'with' statement support to Transact.

Also, return command completion messages from prepared statements. However,
parse and return the count when a sequence of digits are found in the string.

from __future__ import with_statement

C = Con()
with C.Transaction:
do_stuff_in_xact()

Modified Files:
--------------
fe/src:
tracenull.py (r1.23 -> r1.24)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/fe/src/tracenull.py.diff?r1=1.23&r2=1.24)
fe/test:
tracenull.py (r1.11 -> r1.12)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/fe/test/tracenull.py.diff?r1=1.11&r2=1.12)

Browse pgsql-committers by date

  From Date Subject
Next Message James William Pye 2006-05-01 00:22:06 python - ip: Add some support for setuptools.
Previous Message James William Pye 2006-05-01 00:14:42 python - fe: Add a README and some support for setuptools.