[Patches] UserDict/UserList: raise TypeError when trying to set
attrs
Moshe Zadka
Moshe Zadka <mzadka@geocities.com>
Mon, 14 Feb 2000 19:37:34 +0200 (IST)
On Mon, 14 Feb 2000, Gerrit Holl wrote:
> Hello Python gurus,
>
> I added a __setattr__ to UserDict and UserList. When trying to set
> attributes to dictionairies and lists, an error is raised. In
> UserDict and UserList, that's not true:
I'm certain I'm against this patch: it would make deriving from UserDict
(e.g.) that much harder, by needing to override __setattr__ for any
new attributes you'd want to add.
My 0.02$
--
Moshe Zadka <mzadka@geocities.com>.
INTERNET: Learn what you know.
Share what you don't.