Author: Wim Lavrijsen <wlavrij...@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 _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit