On Tue, 2007-01-23 at 19:51 +0100, Dirk Meyer wrote:
> See freevo/ui/src/[audio|video]/player.py:
> | # create singleton object
> | player = kaa.utils.Singleton(Player)
> | 
> | # create functions to use from the outside
> | play = player.play
> | stop = player.stop
> 
> Now the player.py provides play and stop but the player itself will
> created when needed.

I guess you are trading instantiating one class (Player) for another one
(Memberfunction).  (BTW it should be called MemberFunction.)  But I
suppose at least you know the latter one is lightweight and doesn't
import anything, neither of which could be said about kaa.popcorn.Player
(assuming this is the Player class you refer to). 


-------------------------------------------------------------------------
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

Reply via email to