![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: bug or feature?
From: Fredrik Lundh <fredrik@pythonware.com>
Date: Thu Oct 06 2005 - 08:53:55 CEST
Steven D'Aprano wrote:
> I suppose someone might be able to come up with code that deliberately
argument binding is commonly used for optimization, and to give simple
more importantly, it's the standard pydiom for passing object *values* (of
x = something
def myfunc(arg, x=x):
here's a typical gotcha:
for i in range(10):
to make this work as expected, you have to do
for i in range(10):
</F>
|