generate methods at runtime, but the wrong one gets called
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Mon Aug 25 13:50:24 EDT 2008
On Mon, 25 Aug 2008 12:52:44 +0200, Maric Michaud wrote:
> In other OOP language I would encourage you to implement this logic in
> some sort of singleton, but in python we don't like this construct,
> module level variables and function do perfectly the job, simple as
> they are.
Modules are some sort of singletons in Python.
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list