Quantcast
Channel: Builder pattern equivalent in Python - Stack Overflow
Viewing all articles
Browse latest Browse all 8

Builder pattern equivalent in Python

$
0
0

In Java, you can use the builder pattern to provide a more readable means to instantiating a class with many parameters. In the builder pattern, one constructs a configuration object with methods to set named attributes, and then uses it to construct another object.

What is the equivalent in Python? Is the best way to mimic the same implementation?


Viewing all articles
Browse latest Browse all 8

Latest Images

Trending Articles





Latest Images