[pypy-svn] r15491 - pypy/dist/pypy/rpython/memory

cfbolz at codespeak.net cfbolz at codespeak.net
Sun Jul 31 23:23:51 CEST 2005


Author: cfbolz
Date: Sun Jul 31 23:23:50 2005
New Revision: 15491

Modified:
   pypy/dist/pypy/rpython/memory/lltypesimulation.py
Log:
as per samuele's suggestion I change the name of SimulatorPtr to make it
more similar to _ptr.


Modified: pypy/dist/pypy/rpython/memory/lltypesimulation.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/lltypesimulation.py	(original)
+++ pypy/dist/pypy/rpython/memory/lltypesimulation.py	Sun Jul 31 23:23:50 2005
@@ -36,7 +36,7 @@
         
 # this class is intended to replace the _ptr class in lltype
 # using the memory simulator
-class SimulatorPtr(object):
+class simulatorptr(object):
     def __init__(self, TYPE, address):
         self.__dict__['_TYPE'] = TYPE
         self.__dict__['_T'] = TYPE.TO
@@ -79,4 +79,4 @@
 def malloc(T, n=None, immortal=False):
     size = get_size(T)
     address = lladdress.raw_malloc(size)
-    return SimulatorPtr(lltype.Ptr(T), address)
+    return simulatorptr(lltype.Ptr(T), address)



More information about the Pypy-commit mailing list