[Python-checkins] python/nondist/peps pep-0289.txt,1.12,1.13
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Thu May 20 18:57:05 EDT 2004
Update of /cvsroot/python/python/nondist/peps
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29368
Modified Files:
pep-0289.txt
Log Message:
Clarify when the iter() is called.
Index: pep-0289.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0289.txt,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** pep-0289.txt 19 May 2004 21:18:54 -0000 1.12
--- pep-0289.txt 20 May 2004 22:57:01 -0000 1.13
***************
*** 103,107 ****
for x in exp:
yield x**2
! g = __gen(range(10))
print g.next()
--- 103,107 ----
for x in exp:
yield x**2
! g = __gen(iter(range(10)))
print g.next()
***************
*** 120,124 ****
if exp4:
yield tgtexp
! g = __generator(exp1)
del __gen
--- 120,124 ----
if exp4:
yield tgtexp
! g = __gen(iter(exp1))
del __gen
More information about the Python-checkins
mailing list