Relative Content

Tag Archive for pythondesign-patterns

Adapter design pattern

How could I write a client code that supports all classes that follow the Target interface?

Determine base classes during initialization in Python

I’m trying to create a Python class (let’s say ETL) which obtains it’s behaviour from a number of base classes (Extractor, Transformer, Loader). However, for one of these base classes the behaviour should be determined based on the parameters passed during the intialization of ETL.