¡@

Home 

python Programming Glossary: strategyexample

how is this Strategy Pattern written in Python? (the sample in Wikipedia)

http://stackoverflow.com/questions/963965/how-is-this-strategy-pattern-written-in-python-the-sample-in-wikipedia

so different of the others. To mock the PHP script class StrategyExample def __init__ self func None if func self.execute func def execute.. print Strategy 2 if __name__ __main__ strat0 StrategyExample strat1 StrategyExample executeReplacement1 strat2 StrategyExample.. 2 if __name__ __main__ strat0 StrategyExample strat1 StrategyExample executeReplacement1 strat2 StrategyExample executeReplacement2..