Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: Can global variable be passed into Python function? Date: Sat, 22 Feb 2014 16:44:03 +0200 Organization: A noiseless patient Spider Lines: 25 Message-ID: <87ppmfcimk.fsf@elektro.pacujo.net> References: <27ac2248-0ca3-4ba6-9d25-eaad324bc5e9@googlegroups.com> <87sird7wuw.fsf@handshake.de> <8454E8CB-E6E3-452F-8E54-9A77BFF34EC2@gmail.com> <1m3gg9lbf2ln5m2kbki954t17mqni3b20k@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx05.eternal-september.org; posting-host="ff5cf27ef3d5b31f034d3b72bdc27a41"; logging-data="28323"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19DZgWpHg07vJ9G+3zSO7RV" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) Cancel-Lock: sha1:14VdN8e1yCpDSPF8m1WXdbPgcvY= sha1:nMnSVXcys+nxCg6otHd5YFBWnDE= Xref: csiph.com comp.lang.python:66897 Mark Lawrence : > On 22/02/2014 02:47, Dennis Lee Bieber wrote: >> BASIC, C, FORTRAN, COBOL, Assembly... A "variable" is synonym >> for an address [a box that holds things]. > > In C. > > int xyz = 1; > > xyz is placed in a register. What is xyz called now as it's not in > memory? It's still a box, just like in Python. The difference is that while in C, the box looks like this: in Python, it looks like this: Marko