Another try at Python's selfishness
Alex Martelli
aleaxit at yahoo.com
Fri Feb 3 10:29:40 EST 2006
Magnus Lycka <lycka at carmen.se> wrote:
...
> which isn't needed at all. So far, the existence of x.y somewhere
> in Python always implied that x was already introduced explicitly
> in the program, and you suggest that we violate that both in the
Almost... import (and from) statements are exceptions to this.
import x.y
binds or rebinds name x "on the fly", as well as attribute y of x.
Alex
More information about the Python-list
mailing list