[pypy-svn] pypy default: Expose socket and (temporarily hopefully) hide rsocket

fijal commits-noreply at bitbucket.org
Mon Jan 31 21:26:22 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r41505:8a8a448fa600
Date: 2011-01-31 22:25 +0200
http://bitbucket.org/pypy/pypy/changeset/8a8a448fa600/

Log:	Expose socket and (temporarily hopefully) hide rsocket

diff --git a/pypy/module/pypyjit/policy.py b/pypy/module/pypyjit/policy.py
--- a/pypy/module/pypyjit/policy.py
+++ b/pypy/module/pypyjit/policy.py
@@ -13,14 +13,15 @@
         if '.' in modname:
             modname, _ = modname.split('.', 1)
         if modname in ['pypyjit', 'signal', 'micronumpy', 'math', 'exceptions',
-                       'imp', 'sys', 'array', '_ffi', 'itertools', 'operator']:
+                       'imp', 'sys', 'array', '_ffi', 'itertools', 'operator',
+                       '_socket']:
             return True
         return False
 
     def look_inside_function(self, func):
         mod = func.__module__ or '?'
 
-        if mod == 'pypy.rlib.rbigint' or mod == 'pypy.rlib.rlocale':
+        if mod == 'pypy.rlib.rbigint' or mod == 'pypy.rlib.rlocale' or mod == 'pypy.rlib.rsocket':
             return False
         if '_geninterp_' in func.func_globals: # skip all geninterped stuff
             return False


More information about the Pypy-commit mailing list