On Tue, Oct 19, 2004 at 11:23:13AM +0200, Leopold Toetsch wrote: > * the import statement is simulated too by storing the lexicals into the > caller's frame. This would very likely be another Python opcode.
I should point out that this is much more like Python's semantics for "import *" than Dan's overlapping-namespaces idea -- "import" really means "copy these bindings into my current module". In particular, after doing "from foo import *", subsequent additions or removals of names to foo will not be reflected in the bindings of the module importing them. Allen