[Python-checkins] CVS: python/dist/src/Lib __future__.py,1.6,1.7 inspect.py,1.18,1.19 tokenize.py,1.24,1.25 types.py,1.15,1.16
Guido van Rossum
gvanrossum@users.sourceforge.net
2001年7月15日 14:08:31 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv12021/Lib
Modified Files:
__future__.py inspect.py tokenize.py types.py
Log Message:
Preliminary support for "from __future__ import generators" to enable
the yield statement. I figure we have to have this in before I can
release 2.2a1 on Wednesday.
Note: test_generators is currently broken, I'm counting on Tim to fix
this.
Index: __future__.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/__future__.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** __future__.py 2001年07月12日 22:36:02 1.6
--- __future__.py 2001年07月15日 21:08:29 1.7
***************
*** 68,69 ****
--- 68,70 ----
nested_scopes = _Feature((2, 1, 0, "beta", 1), (2, 2, 0, "alpha", 0))
+ generators = _Feature((2, 2, 0, "alpha", 1), (2, 3, 0, "final", 0))
Index: inspect.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/inspect.py,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -r1.18 -r1.19
*** inspect.py 2001年06月29日 23:51:08 1.18
--- inspect.py 2001年07月15日 21:08:29 1.19
***************
*** 25,28 ****
--- 25,30 ----
# This module is in the public domain. No warranties.
+ from __future__ import generators
+
__author__ = 'Ka-Ping Yee <ping@lfw.org>'
__date__ = '1 Jan 2001'
Index: tokenize.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tokenize.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** tokenize.py 2001年06月29日 23:51:08 1.24
--- tokenize.py 2001年07月15日 21:08:29 1.25
***************
*** 23,26 ****
--- 23,28 ----
each time a new token is found."""
+ from __future__ import generators
+
__author__ = 'Ka-Ping Yee <ping@lfw.org>'
__credits__ = \
Index: types.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/types.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** types.py 2001年06月25日 19:46:25 1.15
--- types.py 2001年07月15日 21:08:29 1.16
***************
*** 3,6 ****
--- 3,7 ----
Types that are part of optional modules (e.g. array) are not listed.
"""
+ from __future__ import generators
import sys