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

Guido van Rossum gvanrossum at gmail.com
Sun Apr 17 21:44:43 CEST 2005

> > 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.

You meant 2.5 only of course. It's still a new feature and as such
can't be changed in 2.4.

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list