[Python-Dev] Re: changing AttributeError to TypeError
Guido van Rossum
guido@digicool.com
Mon, 09 Jul 2001 14:39:21 -0400
I just noticed another place that swaps a TypeError for an
AttributeError.
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/)