Armin Rigo <[email protected]> added the comment:
Note that the CPython return type depends on the input data:
>>> struct.unpack("!Q", "\x00"*8)
(0,)
>>> struct.unpack("!Q", "\xff"*8)
(18446744073709551615L,)
Is it really something we need to reproduce in PyPy? PyPy's behavior is at
least more consistent, because the return type depends only on the format
character... Can you give us an example of Python code that depends on that
(and doesn't break horribly when it *does* get a long)?
----------
nosy: +arigo
________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1738>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue