[Python-Dev] Inconsistent exception for read-only properties?

Barry Warsaw barry at python.org
Sun Apr 17 21:17:19 CEST 2005


On Sun, 2005-04-17 at 14:36, Guido van Rossum wrote:

> Personally, I think it would be fine to just change the TypeError to
> AttributeError. I expect that very few people would be hurt by that
> change (they'd be building *way* too much specific arcane knowledge
> into their program if they had code for which it mattered).

Unless there are any objections in the next few days, I will take this
as a pronouncement and make the change at least in 2.5 and 2.4.

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20050417/6f5d5f24/attachment.pgp


More information about the Python-Dev mailing list