Re: Python variables are bound to types when used?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Python variables are bound to types when used?

From: Aahz <aahz@pythoncraft.com>
Date: Thu Oct 20 2005 - 02:12:49 CEST

In article <pan.2005.10.19.23.23.34.109772@REMOVETHIScyber.com.au>,
Steven D'Aprano <steve@REMOVETHIScyber.com.au> wrote:
>On Wed, 19 Oct 2005 20:06:53 +0000, Grant Edwards wrote:
>>
>> Python doesn't have variables.
>>
>> Python has objects of various types. You can bind 0 or more
>> names an object.
>
>I frequently use "variable" as a synonym for "name" when talking about
>Python code. Do people think I am wrong to do so?

Wrong? No. Bad idea? Possibly, depending on context. I'm often using
"variable" in casual conversation -- it's hard to break the habit of
thirty years of programming! But I try very hard to stick with "name"
when I'm doing formal instruction.

-- 
Aahz (aahz@pythoncraft.com)           <*>         http://www.pythoncraft.com/
"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur."  --Red Adair
Received on Mon Oct 24 01:49:56 2005