On Fri, May 11, 2012 at 10:23 AM, Chris Angelico <ros...@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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to