Private methods

alex23 wuwei23 at gmail.com
Wed Oct 10 21:34:01 EDT 2012


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.

The examples are in C++ and it's about game development, but I found
this article to be very good at explaining the approach:
http://gameprogrammingpatterns.com/component.html

I've become a big fan of components & adaptation using zope.interface:
http://wiki.zope.org/zope3/ZopeGuideComponents



More information about the Python-list mailing list