New to Python, and just had something strange happen.
I've been running my new code in IDLE running in windows. My IDLE
version shows as 1.2.1, Python version displaying in IDLE is 2.5.1.
I have been editing my code in UltraEdit then testing in IDLE by
choosing open, then F5. I didn't see an
J. Clifford Dyer wrote:
>> before calling my_function, x does not exist in my program. So, my
>> question is in my_function, the combination of using the global
>> statement, then implicitly creating x via assignment to the result of
>> the open function, is x created in the global namespace?
>
Bjoern Schliessmann wrote:
> Please use a more informative subject next time.
>
> Jim Hendricks wrote:
>> 1) global vars - python sets scope to the block a var is declared
>> (1st set),
>
> http://docs.python.org/ref/global.html
>
> I'm afraid not. Python
BartlebyScrivener wrote:
> On Nov 2, 8:51 am, Jim Hendricks <[EMAIL PROTECTED]> wrote:
>> New to python, programming in 15 or so langs for 24 years.
>>
>> Couple of questions the tuts I've looked at don't explain:
>
> Did you look at THE tut? You w
New to python, programming in 15 or so langs for 24 years.
Couple of questions the tuts I've looked at don't explain:
1) global vars - python sets scope to the block a var is declared (1st
set), I see the global keyword that allows access to global vars in a
function, what I'm not clear on is d