![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: self modifying code
From: Robin Becker <robin@NOSPAMreportlab.com>
Date: Sun Apr 30 2006 - 11:36:54 CEST
Ben C wrote:
well in the original instance the above reduced to something like
data=None
so the actual function is pretty low cost, but the extra cost of the
def func(arg):
then the test is a few percent of the total cost; why keep it?
All the other more complex solutions involving namespaces, singletons
> Or nicer to use a "singleton" perhaps than a global, perhaps something
-- Robin BeckerReceived on Mon May 1 00:46:56 2006 |