python newbie
Bjoern Schliessmann
usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Fri Nov 2 17:45:36 EDT 2007
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.
More information about the Python-list
mailing list