From: Patrick K. O'B. <po...@or...> - 2001-12-13 21:16:07
|
In a way, a module makes a nice class-like singleton object. So unless you really have a need for subclassing, I don't have a problem with your suggestion. --- Patrick K. O'Brien Orbtech.com - Your Source For Python Development Services Phone: 314-963-3206 ka said: > I still like the idea of just referencing functions in the log > module and I > think I'll go ahead and try that out. Then you could just do: > > import log > > log.info(" interval is up...") > > since info would be setup to do the right thing. |