python - fe: Make __iter__ be an implicit __call__.

Поиск
Список
Период
Сортировка
От jwp@pgfoundry.org (James William Pye)
Тема python - fe: Make __iter__ be an implicit __call__.
Дата
Msg-id 20060217164102.4DA6010337F6@pgfoundry.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: neilc@postgresql.org (Neil Conway)
Дата:
Сообщение: pgsql: Fix typo in comment.
Следующее
От: jwp@pgfoundry.org (James William Pye)
Дата:
Сообщение: python - fe: Implement more mapping interfaces.