[Zope-Checkins] CVS: Zope2 - Bindings.py:1.4

evan@serenade.digicool.com evan@serenade.digicool.com
Wed, 11 Apr 2001 11:51:43 -0400


Update of /cvs-repository/Zope2/lib/python/Shared/DC/Scripts
In directory serenade.digicool.com:/home/evan/Zope/Zope2/lib/python/Shared/DC/Scripts

Modified Files:
	Bindings.py 
Log Message:
Merge to evan-script_fix-merge-3



--- Updated File Bindings.py in package Zope2 --
--- Bindings.py	2001/01/26 15:14:52	1.3
+++ Bindings.py	2001/04/11 15:51:42	1.4
@@ -329,7 +329,8 @@
         # Try to find unbound parameters in the namespace, if the
         # namespace is bound.
         if self.getBindingAssignments().isNameAssigned('name_ns'):
-            for name in self.func_code.co_varnames:
+            code = self.func_code
+            for name in code.co_varnames[:code.co_argcount]:
                 try:
                     namevals[name] = namespace[name]
                 except KeyError: