[Python-Dev] Inconsistent exception for read-only properties?
Michael Hudson
mwh at python.net
Sun Apr 17 22:14:39 CEST 2005
Barry Warsaw <barry at python.org> writes:
> 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.
I don't think this should be changed in 2.4.
Cheers,
mwh
--
<spiv> As far as I'm concerned, the meat pie is the ultimate unit
of currency. -- from Twisted.Quotes
More information about the Python-Dev
mailing list