[ZPT] CVS: Zope3/lib/python/Zope/TAL - TALInterpreter.py:1.63.10.6

Guido van Rossum guido@python.org
Thu, 25 Apr 2002 23:49:18 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/TAL
In directory cvs.zope.org:/tmp/cvs-serv23801/lib/python/Zope/TAL

Modified Files:
      Tag: Zope-3x-branch
	TALInterpreter.py 
Log Message:
Anticipate None becoming a keyword in Python 2.3.  There are a few
functions with a default argument of the form None=None, as a speed
hack; this will break.

Note that in one case, None is not used in the function body; in
another case, None is used to pass an explicit 2nd arg to {}.get(),
but this defaults to None.  Draw your own conclusions...



=== Zope3/lib/python/Zope/TAL/TALInterpreter.py 1.63.10.5 => 1.63.10.6 ===
     bytecode_handlers = {}
 
-    def interpret(self, program, None=None):
+    def interpret(self, program):
         oldlevel = self.level
         self.level = oldlevel + 1
         handlers = self.dispatch