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/2004-November/049886.html below:

[Python-Dev] struct module: add OverflowErrors now?

[Python-Dev] struct module: add OverflowErrors now? [Python-Dev] struct module: add OverflowErrors now?Armin Rigo arigo at tunes.org
Fri Nov 12 14:12:36 CET 2004
Hi,

The struct module is too lazy in checking for overflows (it only checks some
cases on some architectures).  See patch #1038854.  The question is: can we
make it strict this late in the 2.4 release process?  This *will* break some
user code; the proof is that it breaks some standard library code, e.g.
gzip.py, which uses a signed typecode when it really means an unsigned one.

Fixing it in 2.4 would be nice, but on the other hand we could postpone it for
the 2.5 trunk; people trying 2.5 early will see the problem quickly.  We could
add warnings for 2.4 but that looks overkill.  Or we could just go ahead and
break existing buggy code with 2.4b3.  Opinions?


Armin
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