From: Tavis R. <ta...@ca...> - 2002-01-18 20:34:16
|
On Friday 18 January 2002 12:29, Mike Orr wrote: > On Fri, Jan 18, 2002 at 11:01:03AM -0800, Tavis Rudd wrote: > > thinking some more about the 'properties style' proposal ... > > > > One of the motivations for making the switch to 'properties' is > > to remove the performance costs associated with all the accessor > > methods. In cases where no calculations are done, 2 methods and > > an underscored attribute can be replaced with a single property. > > However, these 'quasi-properties' WON'T have docstrings > > associated with them! True 'properties' can have docstrings, but > > they require 2 methods and an internal underscored attribute. > > Thus, there's a conflict between speed and docstrings. > > Elaboration? See my response to Ian. > There seem to be several ways to document a property. > And what do you mean by quasi-property? One can argue that our > current practice is quasi-properties. By 'quasi-properties', I mean plain old attributes that might be turned into 'true properties' at a later date. |