Python scope

From: Steven Kurylo <sk_at_no.spam.please>
Date: Thu Jul 19 2007 - 09:48:55 CST

I've been dying to ask this since I started using python...

    "all variables found outside of the innermost scope are read-only
(an attempt to write to such a variable will simply create a new local
variable in the innermost scope, leaving the identically named outer
variable unchanged)."

Who ever thought that was a good idea?

Perl will at least warn me that I'm actually masking an outer variable
with an inner variable. Python just leaves me wondering where I went
wrong.
Received on Thu Jul 19 09:49:07 2007

This archive was generated by hypermail 2.1.8 : Thu Jul 19 2007 - 09:49:11 CST