A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-July/015820.html below:

[Python-Dev] Re: changing AttributeError to TypeError

[Python-Dev] Re: changing AttributeError to TypeError [Python-Dev] Re: changing AttributeError to TypeErrorGuido 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/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4