A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-May/065479.html below:

[Python-Dev] test_gzip/test_tarfile failure om AMD64

[Python-Dev] test_gzip/test_tarfile failure om AMD64 [Python-Dev] test_gzip/test_tarfile failure om AMD64Tim Peters tim.peters at gmail.com
Wed May 31 17:31:35 CEST 2006
I'm afraid a sabbatical year isn't long enough to understand what the
struct module did or intends to do by way of range checking <0.7
wink>.

Is this intended?  This is on a 32-bit Windows box with current trunk:

>>> from struct import pack as p
>>> p("I", 2**32 + 2343)
C:\Code\python\lib\struct.py:63: DeprecationWarning: 'I' format
requires 0 <= number <= 4294967295
  return o.pack(*args)
'\x00\x00\x00\x00'

The warning makes sense, but the result doesn't make sense to me.  In
Python 2.4.3, that example raised OverflowError, which seems better
than throwing away all the bits without an exception.
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4