Scoping "bug" ?
Tim Peters
tim_one at email.msn.com
Mon Aug 21 16:35:36 EDT 2000
[Alex Martelli]
> The determination of what namespace[s] to look up a binding in
> is done at compile-time. The actual look up is done at run-time.
[Kevin Bailey]
> Fair enough. Then the "compiler" should be more than capable of
> giving a warning that the variable may be used before being
> bound.
We accept patches at SourceForge <0.9 wink>. The compiler does no flow
analysis of any kind now. We could *easily* arrange to print a "may"
warning about *every* local, though!
see-java's-"definite-assignment"-rules-for-a-hint-about-how-
much-work-a-*good*-warning-would-take-ly y'rs - tim
More information about the Python-list
mailing list