[Python-checkins] CVS: python/dist/src/Lib types.py,1.14,1.15
Tim Peters
tim_one@users.sourceforge.net
Mon, 25 Jun 2001 12:46:27 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv12643/python/dist/src/Lib
Modified Files:
types.py
Log Message:
Teach the types module about generators. Thanks to James Althoff on the
Iterators list for bringing it up!
Index: types.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/types.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** types.py 2000/03/10 23:18:11 1.14
--- types.py 2001/06/25 19:46:25 1.15
***************
*** 33,36 ****
--- 33,41 ----
pass
+ def g():
+ yield 1
+ GeneratorType = type(g())
+ del g
+
class _C:
def _m(self): pass