[Python-3000] MemoryError oddities

Benjamin Peterson musiccomposition at gmail.com
Wed Jul 30 03:48:46 CEST 2008

On Tue, Jul 29, 2008 at 7:05 PM, Guido van Rossum <guido at python.org> wrote:
> Did anyone come up with a fix for these?
> It's true that OverflowError and MemoryError are returned pretty
> randomly when we detect that an allocation is not going to fit. I
> think MemoryError is better though, so perhaps those uses of
> OverflowError should be fixed. I doubt that there are any apps (except
> unit tests for this specific feature) that depend on such specific
> errors.

+1 OverflowErrors should probably by reserved for numeric overflows.

Benjamin Peterson
"There's no place like"

More information about the Python-3000 mailing list