[Zope-dev] Waaagh! Python Script won't allow __setitem__

Phillip J. Eby pje@telecommunity.com
Mon, 19 Feb 2001 14:24:39 -0500


At 05:25 PM 2/19/01 +0000, Chris Withers wrote:
>
>Hmmm.... arguably a bug in ExtensionClass, but not one I'm gonna try and
fix ;-)
>

It's not a bug, it's a feature -- the feature that is the reason for the
very existence of ExtensionClasses in the first place: merging of the
notion of type and class.

Of course, type() could always be replaced with a safe_type function that
checked whether the type() was an ExtensionClass and returned something inert.