Duncan Booth wrote: > Why not try it out for yourself (both of you). Globals do not need > to be defined in the global scope so long as the first 'access' is > to bind a value to the variable:
Well, I did. I (mis)understood the OP to mean "read" by "access". I didn't consider rebinding another object to that name. > A function is an attribute of the module which contains it, not a > method. It is just like when you do: Yes, I agree, not a method in Python terms. Regards, Björn -- BOFH excuse #196: Me no internet, only janitor, me just wax floors. -- http://mail.python.org/mailman/listinfo/python-list