Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #31238 > unrolled thread

Re: Understanding and dealing with an exception

Started byChris Angelico <rosuav@gmail.com>
First post2012-10-14 15:31 +1100
Last post2012-10-14 15:31 +1100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Understanding and dealing with an exception Chris Angelico <rosuav@gmail.com> - 2012-10-14 15:31 +1100

#31238 — Re: Understanding and dealing with an exception

FromChris Angelico <rosuav@gmail.com>
Date2012-10-14 15:31 +1100
SubjectRe: Understanding and dealing with an exception
Message-ID<mailman.2164.1350189067.27098.python-list@python.org>
On Sun, Oct 14, 2012 at 3:23 PM, Vincent Davis <vincent@vincentdavis.net> wrote:
> OverflowError: Python int too large to convert to C long
> line 266, in _maketile
>   bytecount = read(channels * ysize * 2)

Is the file over 2GB? Might be a limitation, more than a bug, and one
that could possibly be raised by using a 64-bit build.

Alternatively, you could deem them invalid for exceeding your file
size limit (either before passing to PIL, or on catching this
exception).

ChrisA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web