Mastering Objectoriented Python
上QQ阅读APP看书,第一时间看更新

Note

Is this really necessary?

This is, perhaps, too much work to simply assure that an object isn't accidentally misused. Practically, we're more interested in the diagnostic information available from an exception and traceback than we are in a super-secure immutable class.