What is the good practice in Python when I need to initialize an objects that contains, for example, big array and it should be filled with calculated values during the object creation. Is it ok in Python to do this inside constructor or this is like a code-smell and I should use Factory instead? What is the Pythonic way here?
Aucun commentaire:
Enregistrer un commentaire