[Python-Dev] [Python-checkins] cpython (2.7): Issue #10276: test_zlib checks that inputs of 2 GB are handled correctly by (original) (raw)

Ethan Furman ethan at stoneleaf.us
Thu May 5 17:17:27 CEST 2011


Victor Stinner wrote:

Le jeudi 05 mai 2011 à 05:07 -0700, Ethan Furman a écrit :

... hence the resulting file is one less than 2GB. Yep, it's 0x7FFFFFFF because it's INTMAX, the biggest value storable in an int. The zlib module stores the buffer size into an int in Python 2.7 (and Pyssizet in Python 3.3).

So we are agreed that the file is not, in fact, 2GB in size...

On Tue, May 3, 2011 at 3:19 PM, victor.stinner <python-checkins at python.org> wrote:

+# Issue #10276 - check that inputs of 2 GB are handled correctly. +# Be aware of issues #1202, #8650, #8651 and #10276

So why do the comments say we are testing a 2GB input?

Ethan



More information about the Python-Dev mailing list