views:

149

answers:

2

hello . i have 2 questions : 1- im trying to implement an ( Observer ) design pattern in python. what is the easiest implementation for that ?

i need it to observe machines status in a render farm that im building currently .

2- is there any good (python) design patterns book out there ?

+1  A: 

You can find a discussion on python design patterns in this previous question.

An implementation of an observer pattern is given here.

Frank
+5  A: 

There are already some nice sources out there:

Design Patterns in Python

this is also interessting: Amazon Link

Last but not least...Alex Martelli made a very interessting talk regarding this issue in Google TechTalks

Video Link

Regarding your Observer Question: Online Example not very pretty but a good point to start...

Edit: After reading that this is a duplicate of this question here..Python-Design-Patterns...there are a lot of useful links and comments in that question. I would recommend everyone reading this question, too.

bastianneu