[pypy-svn] r44726 - pypy/dist/pypy/lang/scheme

jlg at codespeak.net jlg at codespeak.net
Wed Jul 4 17:00:59 CEST 2007


Author: jlg
Date: Wed Jul  4 17:00:59 2007
New Revision: 44726

Modified:
   pypy/dist/pypy/lang/scheme/object.py
Log:
spelling, s/clousre/slosure/

Modified: pypy/dist/pypy/lang/scheme/object.py
==============================================================================
--- pypy/dist/pypy/lang/scheme/object.py	(original)
+++ pypy/dist/pypy/lang/scheme/object.py	Wed Jul  4 17:00:59 2007
@@ -160,7 +160,7 @@
         raise NotImplementedError
 
 class W_Lambda(W_Procedure):
-    def __init__(self, args, body, clousure, pname="#f"):
+    def __init__(self, args, body, closure, pname="#f"):
         self.args = []
         arg = args
         while not isinstance(arg, W_Nil):
@@ -171,7 +171,7 @@
 
         self.body = body
         self.pname = pname
-        self.clousure = clousure
+        self.closure = closure
 
     def to_string(self):
         return "#<procedure %s>" % (self.pname,)
@@ -182,7 +182,7 @@
 
         local_ctx = ctx.copy()
         #ugly hack
-        for (name, val) in self.clousure.scope.items():
+        for (name, val) in self.closure.scope.items():
             local_ctx.lput(name, val.obj)
 
         vars = zip(self.args, lst)
@@ -286,7 +286,7 @@
     def __init__(self, w_obj):
         self.obj = w_obj
 
-class Clousure(Location):
+class Closure(Location):
     def __init__(self, w_obj):
         self.obj = w_obj
 
@@ -333,7 +333,7 @@
     def lcopy(self):
         lscope = {}
         for (name, loc) in self.scope.items():
-            if isinstance(loc, Clousure):
+            if isinstance(loc, Closure):
                 lscope[name] = loc
 
         return ExecutionContext(lscope)
@@ -371,5 +371,5 @@
 
     def lput(self, name, obj):
         """create new location"""
-        self.scope[name] = Clousure(obj)
+        self.scope[name] = Closure(obj)
 



More information about the Pypy-commit mailing list