Thought: local declarations

Tim Gahnström /Bladerman tim at bladerman.com
Tue May 29 11:33:30 EDT 2001


<scleary at jerviswebb.com> skrev i meddelandet news:mailman.991145445.3168

> I don't really like declarations myself -- but I'd like to be able to flag
> misspellings as an error, though, and I can't think of any other way to do
> it.

Couldn't one way to solve the problem be that each time the compiler found a
reason to create a variable it looked up the currently avalible variables
and look if there happens to be anything similar there.
It sure wouldnt be perfect and not always correct and I dont say it should
cause an error but maybe flag a little warning or something.

>Has this been discussed before?

Dont know I just entered the wounderfull world of python.

Tim





More information about the Python-list mailing list