Private methods
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Wed Oct 10 22:08:55 EDT 2012
On Wed, 10 Oct 2012 18:34:01 -0700, alex23 wrote:
> On 10 Oct, 17:03, real-not-anti-spam-addr... at apple-juice.co.uk (D.M.
> Procida) wrote:
>> It certainly makes it quick to build a class with the attributes I
>> need, but it does make tracing logic sometimes a pain in the neck.
>>
>> I don't know what the alternative is though.
>
> Components.
Composition. Delegation. Traits. Prototypes.
Inheritance is great, but it is not a solution to everything.
--
Steven
More information about the Python-list
mailing list