python - fe: Make __iter__ be an implicit __call__.

From: jwp(at)pgfoundry(dot)org (James William Pye)
To: pgsql-committers(at)postgresql(dot)org
Subject: python - fe: Make __iter__ be an implicit __call__.
Date: 2006-02-17 16:41:02
Message-ID: 20060217164102.4DA6010337F6@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Make __iter__ be an implicit __call__.

GreenTrunk specifies this, so implement it.

Allows for the rather nice 'for x in C.Query("..."): dostuffwith(x)' where that
query takes no arguments.

Modified Files:
--------------
fe/src:
tracenull.py (r1.8 -> r1.9)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/python/fe/src/tracenull.py.diff?r1=1.8&r2=1.9)

Browse pgsql-committers by date

  From Date Subject
Next Message James William Pye 2006-02-17 20:35:30 python - fe: Implement more mapping interfaces.
Previous Message Neil Conway 2006-02-17 03:29:03 pgsql: Fix typo in comment.