On 3/17/2011 10:00 PM, Terry Reedy wrote:
On 3/17/2011 8:24 PM, J Peyret wrote:
This gives a particularly nasty abend in Windows - "Python.exe has
stopped working", rather than a regular exception stack error. I've
fixed it, after I figured out the cause, which took a while, but maybe
someone will benefit from this.

Python 2.6.5 on Windows 7.

class Foo(object):
pass

Foo.__repr__ = Foo.__str__ # this will cause an abend.

2.7.1 and 3.2.0 on winxp, no problem, interactive intepreter or IDLE
shell. Upgrade?

To be clear, the above, with added indent, but with extra fluff (fixes) removed, is exactly what I ran. If you got error with anything else, please say so. Described behavior for legal code is a bug. However, unless a security issue, it would not be fixed for 2.6.

--
Terry Jan Reedy

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to