A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2007-March/072325.html below:

[Python-Dev] Exceptions for readonly attributes

[Python-Dev] Exceptions for readonly attributes [Python-Dev] Exceptions for readonly attributesGuido van Rossum guido at python.org
Sat Mar 24 05:02:53 CET 2007
Sounds like something maybe to do in 3.0.

On 3/23/07, Raymond Hettinger <python at rcn.com> wrote:
> Re:  www.python.org/sf/1687163
>
> I noticed that RO members raise a TypeError upon an attempted write.  In contrast, we get an AttributeError when writing to a readonly property or to a readonly method (such as those for builtin types).
>
> IMO, the TypeError should really be an AttributeError.  However, changing it makes four of the tests fail.
>
> The question for you guys is whether or not to make the fix.
>
>
> Raymond
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org
>


-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev mailing list

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