[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.

[snip]

> What to do about this?

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

Cheers,
M.

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