[pypy-svn] r15188 - pypy/dist/pypy/module/__builtin__

tismer at codespeak.net tismer at codespeak.net
Wed Jul 27 14:52:24 CEST 2005


Author: tismer
Date: Wed Jul 27 14:52:22 2005
New Revision: 15188

Modified:
   pypy/dist/pypy/module/__builtin__/importing.py
Log:
just a comment why we don't use the marshaller's w_long

Modified: pypy/dist/pypy/module/__builtin__/importing.py
==============================================================================
--- pypy/dist/pypy/module/__builtin__/importing.py	(original)
+++ pypy/dist/pypy/module/__builtin__/importing.py	Wed Jul 27 14:52:22 2005
@@ -368,7 +368,8 @@
 
     return w_mod
 
-# helper, to avoid exposing internals of marshal
+# helper, to avoid exposing internals of marshal and the
+# difficulties of using it though applevel.
 def _r_long(osfile):
     a = ord(osfile.read(1))
     b = ord(osfile.read(1))
@@ -462,6 +463,6 @@
     _w_long(osfile, mtime)
     w_marshal = space.getbuiltinmodule('marshal')
     w_M = space.getattr(w_marshal, space.wrap('_Marshaller'))
-    w_marshaller = space.call_function(w_M, space.wrap(fd))
-    w_res = space.call_method(w_marshaller, 'dump', space.wrap(co))
+    w_unmarshaller = space.call_function(w_M, space.wrap(fd))
+    w_res = space.call_method(w_unmarshaller, 'dump', space.wrap(co))
     os.close(fd)



More information about the Pypy-commit mailing list