in 335100 20080222 123210 Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>On Fri, 22 Feb 2008 08:12:56 +0000, Marc 'BlackJack' Rintsch wrote:
>
>> A "variable" in
>> programming languages is composed of a name, a memory location, possibly
>> a type and a value. In C-like languages, where you put values in named
>> and typed "boxes", the memory location and type are attached to the
>> name.  In Python both belong to the value.
>
>But Python objects don't have names, so by your own definition, they
>aren't variables. Names are associated with namespaces, not objects. A
>name must have one and only one object bound to it at any one time;
>objects on the other hand can be bound to one name, or no name, or a
>thousand names. The object itself has no way of knowing what names it is
>bound to, if any.
>
>Or, to put it another way... Python doesn't have variables.

In that case neither does any other OO language.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to