On Tue, 2007-01-23 at 14:17 +0100, Dirk Meyer wrote: > + def __call__(self): > + if self._singleton is None: > + self._singleton = self._class() > + return self._singleton
This doesn't allow passing args to the constructor. > + def __getattr__(self, attr): > + if self._singleton is None: > + return Singleton.Memberfunction(self, attr) > + return getattr(self, _singleton, attr) Why the need for the Memberfunction class? Why not just instantiate the class here as well if self._singleton is None? ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel