[pypy-svn] r62463 - pypy/trunk/pypy/module/sys

cfbolz at codespeak.net cfbolz at codespeak.net
Tue Mar 3 13:32:22 CET 2009


Author: cfbolz
Date: Tue Mar  3 13:32:22 2009
New Revision: 62463

Modified:
   pypy/trunk/pypy/module/sys/__init__.py
   pypy/trunk/pypy/module/sys/vm.py
Log:
kill some commented out things and an unused function


Modified: pypy/trunk/pypy/module/sys/__init__.py
==============================================================================
--- pypy/trunk/pypy/module/sys/__init__.py	(original)
+++ pypy/trunk/pypy/module/sys/__init__.py	Tue Mar  3 13:32:22 2009
@@ -70,8 +70,6 @@
         'setdefaultencoding'    : 'interp_encoding.setdefaultencoding',
 }
     appleveldefs = {
-        #'displayhook'           : 'app.displayhook', 
-        #'__displayhook__'       : 'app.__displayhook__', 
         'excepthook'            : 'app.excepthook', 
         '__excepthook__'        : 'app.excepthook', 
         'exit'                  : 'app.exit', 

Modified: pypy/trunk/pypy/module/sys/vm.py
==============================================================================
--- pypy/trunk/pypy/module/sys/vm.py	(original)
+++ pypy/trunk/pypy/module/sys/vm.py	Tue Mar  3 13:32:22 2009
@@ -97,21 +97,6 @@
     if operror is not None:
         operror.clear(space)
 
-def pypy_getudir(space):
-    """NOT_RPYTHON"""
-    from pypy.tool.udir import udir
-    return space.wrap(str(udir))
-
-## def getrefcount(space, w_obj):
-##     """getrefcount(object) -> integer
-##     Return the reference count of object.  The count returned is generally
-##     one higher than you might expect, because it includes the (temporary)
-##     reference as an argument to getrefcount().
-##     """
-##     # From the results i get when using this i need to apply a fudge
-##     # value of 6 to get results comparable to cpythons. /Arre
-##     return space.wrap(sys.getrefcount(w_obj) - 6)
-
 def settrace(space, w_func):
     """Set the global debug tracing function.  It will be called on each
 function call.  See the debugger chapter in the library manual."""



More information about the Pypy-commit mailing list