[pypy-svn] rev 2419 - pypy/trunk/src/pypy/interpreter

pmaupin at codespeak.net pmaupin at codespeak.net
Wed Dec 17 12:09:00 CET 2003


Author: pmaupin
Date: Wed Dec 17 12:09:00 2003
New Revision: 2419

Modified:
   pypy/trunk/src/pypy/interpreter/extmodule.py
Log:
Private leakage hack

Modified: pypy/trunk/src/pypy/interpreter/extmodule.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/extmodule.py	(original)
+++ pypy/trunk/src/pypy/interpreter/extmodule.py	Wed Dec 17 12:09:00 2003
@@ -26,6 +26,11 @@
                     value = cls.__dict__[name]
                     if isinstance(value, gateway.Gateway):
                         name = value.name
+                        # This hack allows a "leakage" of a private
+                        # module function (starts off prefixed with
+                        # 'private_'; ends up prefixed with '_')
+                        if name.startswith('private_'):
+                            name = name[7:]
                         value = value.__get__(self)  # get a Method
                     elif hasattr(value, '__get__'):
                         continue  # ignore CPython functions


More information about the Pypy-commit mailing list