Author: Manuel Jacob <m...@manueljacob.de>
Branch: py3.3
Changeset: r78593:75dcac9caa42
Date: 2015-07-17 21:05 +0200
http://bitbucket.org/pypy/pypy/changeset/75dcac9caa42/

Log:    Properly implement sys.thread_info.

diff --git a/pypy/module/sys/__init__.py b/pypy/module/sys/__init__.py
--- a/pypy/module/sys/__init__.py
+++ b/pypy/module/sys/__init__.py
@@ -78,7 +78,6 @@
         'int_info'              : 'system.get_int_info(space)',
         'hash_info'             : 'system.get_hash_info(space)',
         'float_repr_style'      : 'system.get_float_repr_style(space)',
-        'thread_info'           : 'system.get_thread_info(space)',
         }
 
     if sys.platform == 'win32':
@@ -114,6 +113,11 @@
                 w_handle = vm.get_dllhandle(space)
                 space.setitem(self.w_dict, space.wrap("dllhandle"), w_handle)
 
+        from pypy.module.sys import system
+        thread_info = system.get_thread_info(space)
+        if thread_info is not None:
+            space.setitem(self.w_dict, space.wrap('thread_info'), thread_info)
+
     def setup_after_space_initialization(self):
         space = self.space
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to