[OT] Can global variable be passed into Python function?

random832 at fastmail.us random832 at fastmail.us
Mon Feb 24 13:21:41 EST 2014


On Mon, Feb 24, 2014, at 13:19, Michael Torrie wrote:
> Why would you think that? The address of the start of your malloc'ed
> structure is the same as the address of the first element.  Surely this
> is logical?  And of course all this is quite off topic.

That's not helpful - the problem, in context, is that he doesn't
understand that the fact that the structure exists at that address is
not the same thing as the variable "o" existing at that address.



More information about the Python-list mailing list