I have a class to handle alerts that, at the end of the process, will be sent in an email. This alerts are list that are updated during the process execution.
The point is that the process uses different modules in different files so...
My question is: what is the pythonic way of handling this alerts class?
- Declare it at the beginnig of the process and pass it as argument to the different modules handlers?
- Maybe create it as
Singleton
? - Any other idea is obviously welcome!
Thank you in advance!
Aucun commentaire:
Enregistrer un commentaire