![]() |
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: John J. Lee <jjl@pobox.com>
Date: Sat Apr 29 2006 - 20:33:59 CEST
Robin Becker <robin@NOSPAMreportlab.com> writes:
> When young I was warned repeatedly by more knowledgeable folk that self
1. I don't think most people would call that "self-modifying code". I
2. The use of global func is just plain weird :-)
3. Peter Otten's version is OK, but how about this, using a closure
def make_func():
John
|