[Python-Dev] Re: changing AttributeError to TypeError
Guido van Rossum
Mon, 09 Jul 2001 14:39:21 -0400
I just noticed another place that swaps a TypeError for an
In 2.1 and before, assigning to an attribute of an object that doesn't
support attribute assignment (like a list) raises TypeError.
Under the new scheme, this will raise AttributeError.
(On the other hand, assigning to a read-only attribute of an object
that *does* support attribute assignment raises TypeError in the old
and new scheme.)
--Guido van Rossum (home page: http://www.python.org/~guido/)