-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
The current API is, IMO, not very pythonic. Singleton classes are just generally icky. What about a stateful module? One thing singleton classes make easier is resetting state; just blow away the instance and reinstantiate. A stateful module would require a reset method which we constantly update to reset each piece of state the module holds. Maybe a hybrid approach with a module providing functions that use the singleton class under the hood?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Todo