python - fe: Make __iter__ be an implicit __call__. - Mailing list pgsql-committers

From jwp@pgfoundry.org (James William Pye)
Subject python - fe: Make __iter__ be an implicit __call__.
Date
Msg-id 20060217164102.4DA6010337F6@pgfoundry.org
Whole thread Raw
List 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)

pgsql-committers by date:

Previous
From: neilc@postgresql.org (Neil Conway)
Date:
Subject: pgsql: Fix typo in comment.
Next
From: jwp@pgfoundry.org (James William Pye)
Date:
Subject: python - fe: Implement more mapping interfaces.