Newbie naive question ... int() throws ValueError
Ian Kelly
ian.g.kelly at gmail.com
Fri May 11 13:12:43 EDT 2012
On Fri, May 11, 2012 at 10:23 AM, Chris Angelico <rosuav at gmail.com> wrote:
> Hmm. What happens if the interpreter can't construct a MemoryError exception?
I believe that a MemoryError instance is pre-allocated for just this
scenario. You can see it in the result of gc.get_objects().
>>> [x for x in gc.get_objects() if isinstance(x, MemoryError)]
[MemoryError()]
Cheers,
Ian
More information about the Python-list
mailing list