![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveRe: "no variable or argument declarations are necessary."
From: Paul Rubin <//phr.cx@NOSPAM.invalid>
Date: Fri Oct 07 2005 - 16:21:33 CEST
Mike Meyer <mwm@mired.org> writes:
Really not though, the scope is what makes it a declaration. In
for i in 1,2:
and the print doesn't raise an error. Further, 'x' is still in scope
(define (counter)
Yeah, I know you'd write it a bit more concisely in Scheme, but I
def counter():
The trouble is, in f, k is neither local nor global, so Python throws
|