[pypy-commit] pypy reflex-support: prevent access to reflection info during annotation/translation time (this happens only with the CINT backend, as the dict and normal library are one and the same)

wlav noreply at buildbot.pypy.org
Fri Feb 24 18:24:25 CET 2012


Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: reflex-support
Changeset: r52864:2d3f26b11661
Date: 2012-02-23 15:46 -0800
http://bitbucket.org/pypy/pypy/changeset/2d3f26b11661/

Log:	prevent access to reflection info during annotation/translation time
	(this happens only with the CINT backend, as the dict and normal
	library are one and the same)

diff --git a/pypy/module/cppyy/interp_cppyy.py b/pypy/module/cppyy/interp_cppyy.py
--- a/pypy/module/cppyy/interp_cppyy.py
+++ b/pypy/module/cppyy/interp_cppyy.py
@@ -50,6 +50,10 @@
         else:
             cpptype = W_CPPType(space, final_name, handle)
         state.cpptype_cache[name] = cpptype
+
+        if space.config.translating and not objectmodel.we_are_translated():
+            return cpptype
+
         cpptype._find_methods()
         cpptype._find_data_members()
         return cpptype


More information about the pypy-commit mailing list