mercredi 1 août 2018

How can the builder pattern with fail safes be used in Python?

I'm trying to implement in Python the builder pattern with some fail safes. This fail safes would normally be implemented in OOP using interfaces and would restrict the user of using some methods before others or at all, unless the current object can be manipulated using this methods. How can such fail safes be implemented in Python?

Aucun commentaire:

Enregistrer un commentaire