Обсуждение: python - fe: Make __iter__ be an implicit __call__.

Поиск
Список
Период
Сортировка

python - fe: Make __iter__ be an implicit __call__.

От
jwp@pgfoundry.org (James William Pye)
Дата:
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)