I have a utility where I have dozens of function and many classes that read an excel file. I want to ensure that python only goes thru the operation of opening the file once, and that one instance would be reused anywhere in the system. Coming from the java world, which is my primary language, this would be a simple singleton. I found this post
Is there a simple, elegant way to define singletons?
Where there is a singleton decoration that i really like for no other reason than its familiar.
Is this design pattern the most appropriate way to pull off this kind of functionality or is there a more pythonish pattern i should use.
thanks.