[pypy-svn] r5407 - pypy/trunk/src/pypy/appspace

arigo at codespeak.net arigo at codespeak.net
Wed Jun 30 13:01:52 CEST 2004


Author: arigo
Date: Wed Jun 30 13:01:51 2004
New Revision: 5407

Modified:
   pypy/trunk/src/pypy/appspace/operator.py
Log:
Removed the staticmethod hack.  People should not use built-in functions as 
never-bound methods.


Modified: pypy/trunk/src/pypy/appspace/operator.py
==============================================================================
--- pypy/trunk/src/pypy/appspace/operator.py	(original)
+++ pypy/trunk/src/pypy/appspace/operator.py	Wed Jun 30 13:01:51 2004
@@ -161,10 +161,3 @@
     'xor(a, b) -- Same as a ^ b.'
     return a ^ b 
 __xor__ = xor
-
-# ugh:
-import types as _types
-for n in globals():
-    v = globals()[n]
-    if isinstance(v, _types.FunctionType):
-        globals()[n] = staticmethod(v)



More information about the Pypy-commit mailing list