Author: Philip Jenvey <pjen...@underboss.org> Branch: py3k Changeset: r61400:8207e13f2d5e Date: 2013-02-17 22:24 -0800 http://bitbucket.org/pypy/pypy/changeset/8207e13f2d5e/
Log: apply workaround from 2.7 diff --git a/lib-python/3.2/trace.py b/lib-python/3.2/trace.py --- a/lib-python/3.2/trace.py +++ b/lib-python/3.2/trace.py @@ -547,6 +547,10 @@ if len(funcs) == 1: dicts = [d for d in gc.get_referrers(funcs[0]) if isinstance(d, dict)] + if len(dicts) == 0: + # PyPy may store functions directly on the class + # (more exactly: the container is not a Python object) + dicts = funcs if len(dicts) == 1: classes = [c for c in gc.get_referrers(dicts[0]) if hasattr(c, "__bases__")] _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit