Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Marko Rauhamaa Newsgroups: comp.lang.python Subject: Re: variable vs. object Date: Mon, 30 Nov 2015 07:28:06 +0200 Organization: A noiseless patient Spider Lines: 23 Message-ID: <87y4dgys2h.fsf@elektro.pacujo.net> References: <2b4696d5-c9fb-4ca6-92a3-564e47712d59@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="b7cb1518d23ec19d482dcc9c31d30fdd"; logging-data="18890"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187TJ5d9doVq7li7ylVpfij" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:J65jy7U0aWsOz3tTNAag+mhAMGU= sha1:W1IpefoWpTLgZNj7haTrBJbOAVQ= Xref: csiph.com comp.lang.python:99721 fl : > I read several parts on line about Python that everything in Python is > an object. Python has two distinct entities: objects and references. All numbers, strings, classes, modules, class instances, files etc are objects. Variables, however, are not objects. They are references. Here are different references: a # variable a.x # attribute a[3] # subscription > Yes, it is a key difference with other languages. Python shares this feature with many higher-level languages. Marko