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

Chris Angelico rosuav at gmail.com
Mon Mar 3 15:25:14 CET 2014


On Tue, Mar 4, 2014 at 1:18 AM, Grant Edwards <invalid at invalid.invalid> wrote:
>> Note that, technically, Grant is correct as long as you grant (heh)
>> that a structure may have an invisible member, the virtual function
>> table pointer. C++ only (I don't believe C has virtual functions -
>> but it may have grown them in one of the newer standards), so in C,
>> all members are public.
>
> Yes. I was talking about C, not C++.  I made that quite clear in
> portions of my post that have been elided.  In C there is no such
> thing as a virtual table pointer.

I wasn't certain of the newer C standards. C's been gaining all sorts
of features, not all of which are necessary, and it's entirely
possible based on my current knowledge that C specifies #include
<antigravity> ...

ChrisA



More information about the Python-list mailing list