Author: Carl Friedrich Bolz <cfb...@gmx.de> Branch: space-newtext Changeset: r88071:932f15c35f9d Date: 2016-11-02 13:07 +0100 http://bitbucket.org/pypy/pypy/changeset/932f15c35f9d/
Log: cmath diff --git a/pypy/module/cmath/__init__.py b/pypy/module/cmath/__init__.py --- a/pypy/module/cmath/__init__.py +++ b/pypy/module/cmath/__init__.py @@ -37,8 +37,8 @@ } interpleveldefs = { - 'pi': 'space.wrap(interp_cmath.pi)', - 'e': 'space.wrap(interp_cmath.e)', + 'pi': 'space.newfloat(interp_cmath.pi)', + 'e': 'space.newfloat(interp_cmath.e)', } interpleveldefs.update(dict([(name, 'interp_cmath.wrapped_' + name) for name in names_and_docstrings])) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit