Re: accessing local and global dictionaries

Guido.van.Rossum@cwi.nl
Wed, 01 Mar 1995 15:25:34 +0100

> # Example usage: define globals a,b and c, starting from 2.
> enum('a,b,c', 2)

This is accomplished just as easy using

[a, b, c] = range(2, 2+3)

No 'enum()' function needed at all! (And the advantage is that the
optimizer knows which identifiers you are defining.)

--Guido van Rossum, CWI, Amsterdam <mailto:Guido.van.Rossum@cwi.nl>
<http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>