[Python-Dev] Exceptions for readonly attributes (original) (raw)
Raymond Hettinger python at rcn.com
Sat Mar 24 01:25:49 CET 2007
- Previous message: [Python-Dev] Proposal: Allow any mapping after ** in calls
- Next message: [Python-Dev] Exceptions for readonly attributes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Proposal: Allow any mapping after ** in calls
- Next message: [Python-Dev] Exceptions for readonly attributes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]