Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:: [': 0.04; 'subject:Python': 0.06; '#include': 0.09; 'portions': 0.09; 'subject:into': 0.09; 'cc:addr:python-list': 0.11; 'c++.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'invisible': 0.16; 'sorts': 0.16; 'subject:variable': 0.16; 'wrote:': 0.18; 'subject:] ': 0.20; 'cc:addr:python.org': 0.22; 'features,': 0.24; 'specifies': 0.24; 'cc:2**0': 0.24; 'post': 0.26; 'certain': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'correct': 0.29; 'am,': 0.29; 'newer': 0.30; 'message- id:@mail.gmail.com': 0.30; 'public.': 0.31; 'yes.': 0.31; 'quite': 0.32; 'entirely': 0.33; 'table': 0.34; 'knowledge': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'c++': 0.36; 'possible': 0.36; 'subject:?': 0.36; 'virtual': 0.37; 'clear': 0.37; 'that,': 0.38; 'structure': 0.39; 'subject:Can': 0.60; 'such': 0.63; 'talking': 0.65; 'believe': 0.68; 'mar': 0.68; 'standards.': 0.84; '1:18': 0.91; 'edwards': 0.91; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=Boo4L8gK9TxLInRr+s83AHv3aaHFSFf5p8vHbcua/9g=; b=uYxtj7eVekgfBHx+uVyIFl0avw7SipTztO/buJHZzguL3vHJNNOnxwpUJ/Au1R18q5 MFjj36sv1xtTD4r9I+LNIUTQvUlDnxmeFTUmEwh/3BeU1k07KndhPeB+PmGvdysyB5FX Vec/dEDljZqeBFDXzt54Ctp3Ifuc/qx+3GtkKUXwmHmQE3pWN8vYaQjIpGltUY99Hoj7 JRc6rTq8qHTf8nOSyvrQNoG+U9C8sFK43UCcCq1AIDV0TW/2fmFQe1deUg+hZq4B62L1 V0QR64ikd8Ikev0GTvgK01x92PUhJqY+LFD3TuOinGdbTKCK057WFEjIBiSAmKB1Vlcs JHFw== MIME-Version: 1.0 X-Received: by 10.66.102.39 with SMTP id fl7mr71398pab.43.1393856715058; Mon, 03 Mar 2014 06:25:15 -0800 (PST) In-Reply-To: References: <27ac2248-0ca3-4ba6-9d25-eaad324bc5e9@googlegroups.com> <87sird7wuw.fsf@handshake.de> <8454E8CB-E6E3-452F-8E54-9A77BFF34EC2@gmail.com> <1m3gg9lbf2ln5m2kbki954t17mqni3b20k@4ax.com> <53095145$0$29985$c3e8da3$5496439d@news.astraweb.com> <877g8mcg1m.fsf@elektro.pacujo.net> <87ob1yay9m.fsf@elektro.pacujo.net> <08aa32de-cd51-4888-bd60-2c2b53d86ecc@googlegroups.com> Date: Tue, 4 Mar 2014 01:25:14 +1100 Subject: Re: [OT] Can global variable be passed into Python function? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1393856724 news.xs4all.nl 2915 [2001:888:2000:d::a6]:46760 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:67552 On Tue, Mar 4, 2014 at 1:18 AM, Grant Edwards 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 ... ChrisA