[Solved] Policy based design in Python [closed]


My aim is to develop an auctioning system and I want to be able to choose the auction strategy – English, Dutch, Silent, etc – at run time.

You could just use strategy pattern (also known as the policy pattern) to accomplish exactly this.

You could also use mixins to provide the strategy instead of composition.

solved Policy based design in Python [closed]