[Python-Dev] Evil setattr hack

Michael Hudson mwh@python.net
Sun, 13 Apr 2003 21:49:17 +0100

Guido van Rossum <guido@python.org> writes:

> Someone accidentally discovered a way to set attributes of built-in
> types, even though the implementation tries to prevent this.


> What to do about this?

Well, one approach would be special cases in PyObject_GenericSetAttr,
I guess.


  > So what does "abc" / "ab" equal?
         -- Steve Holden defends obscure semantics on comp.lang.python