![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveself modifying code
From: Robin Becker <robin@NOSPAMreportlab.com>
Date: Sat Apr 29 2006 - 18:51:45 CEST
When young I was warned repeatedly by more knowledgeable folk that self
Is the following idiom dangerous or unpythonic?
def func(a):
It could be replaced by
data = somethingcomplexandcostly()
but this always calculates data.
-- Robin BeckerReceived on Mon May 1 00:44:14 2006 |