Implementing the factory design pattern using metaclasses in python

Posted by noam on Stack Overflow See other posts from Stack Overflow or by noam
Published on 2010-03-14T20:31:07Z Indexed on 2010/03/14 20:35 UTC
Read the original article Hit count: 213

Filed under:
|
|

I found a lot of links on metaclasses, and most of them mention that they are useful for implementing factory methods. Can you show me an example of using metaclasses to implement the design pattern?

© Stack Overflow or respective owner

Related posts about python

Related posts about metaclass