None & Ellipsis

Moshe Zadka moshez at math.huji.ac.il
Tue Feb 22 01:32:49 EST 2000


On Mon, 21 Feb 2000, Fredrik Lundh wrote:

> exactly.and combined with the "local variables
> are detected by static analysis" rule, things get
> really weird.consider this:
> 
>   def mylongfunction():
>       a = None
        ^^^^^^^
NameError: a

>       # ...
>       # a few hundred lines of computation
>       # ...
>       a = 1, 2, 3
>       None, None, b = a
> 
> this results in an exception.on what line?

You're right, my bad. "_" is probably a better name...
--
Moshe Zadka <mzadka at geocities.com>. 
INTERNET: Learn what you know.
Share what you don't.





More information about the Python-list mailing list