I have never seen any Python code that did anything with MemoryError. I think it would be hard to write such code.