Hi,
I decided I wanted to use the Observer design pattern in my application.
I did a little googling, but all the examples that I found of Observer
in Python seemed over-complicated, so I wrote my own simple version. It
doesn't have as many features as other Observer implementations might,
but it'
I'm using the standard mailbox module to read a maildir, but it seems to
be quite difficult to do some simple things. Is there any way to
identify a message as new, unread, unseen or something similar? What
about finding the most recent message?
My aim is to write a program that will print out
On Wed, 2008-05-28 at 23:30 +0100, Alan Gauld wrote:
> > The lessons I learned are that, when implementing mixins using
> > multiple
> > inheritance:
> >
> > * Mixin classes should not derive from any base class (except
> > object)
> > * But they may assume that the classes they will be mixed in
Thanks Alan. Well, it looks like I've worked it out as far as small
example programs go, hope I can get it working in my actual codebase
now.
On Wed, 2008-05-28 at 23:30 +0100, Alan Gauld wrote:
> > It seemed to me that the most natural way to implement mixins in
> > Python
> > is to use multiple
I'm writing an event-driven GUI framework. I have several independent
units of functionality such as Draggable, Highlightable, etc. Although
these units of functionality are independent of each other, they do all
depend on a certain base implementation that they work with. I want
widget objects to