Author: Amaury Forgeot d'Arc <amaur...@gmail.com> Branch: py3k Changeset: r48837:8299efdb68b6 Date: 2011-10-23 11:46 +0200 http://bitbucket.org/pypy/pypy/changeset/8299efdb68b6/
Log: Rename: sys.long_info -> sys.int_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 @@ -77,7 +77,7 @@ 'getfilesystemencoding' : 'interp_encoding.getfilesystemencoding', 'float_info' : 'system.get_float_info(space)', - 'long_info' : 'system.get_long_info(space)', + 'int_info' : 'system.get_int_info(space)', 'float_repr_style' : 'system.get_float_repr_style(space)' } diff --git a/pypy/module/sys/system.py b/pypy/module/sys/system.py --- a/pypy/module/sys/system.py +++ b/pypy/module/sys/system.py @@ -21,7 +21,7 @@ radix = structseqfield(9) rounds = structseqfield(10) -class long_info(metaclass=structseqtype): +class int_info(metaclass=structseqtype): bits_per_digit = structseqfield(0) sizeof_digit = structseqfield(1) """) @@ -44,7 +44,7 @@ w_float_info = app.wget(space, "float_info") return space.call_function(w_float_info, space.newtuple(info_w)) -def get_long_info(space): +def get_int_info(space): assert rbigint.SHIFT == 31 bits_per_digit = rbigint.SHIFT sizeof_digit = rffi.sizeof(rffi.ULONG) @@ -52,8 +52,8 @@ space.wrap(bits_per_digit), space.wrap(sizeof_digit), ] - w_long_info = app.wget(space, "long_info") - return space.call_function(w_long_info, space.newtuple(info_w)) + w_int_info = app.wget(space, "int_info") + return space.call_function(w_int_info, space.newtuple(info_w)) def get_float_repr_style(space): if rfloat.USE_SHORT_FLOAT_REPR: diff --git a/pypy/module/sys/test/test_sysmodule.py b/pypy/module/sys/test/test_sysmodule.py --- a/pypy/module/sys/test/test_sysmodule.py +++ b/pypy/module/sys/test/test_sysmodule.py @@ -121,9 +121,9 @@ assert isinstance(fi.radix, int) assert isinstance(fi.rounds, int) - def test_long_info(self): + def test_int_info(self): import sys - li = sys.long_info + li = sys.int_info assert isinstance(li.bits_per_digit, int) assert isinstance(li.sizeof_digit, int) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit