[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

I'm wrong or Will we fix the ducks limp?

Paul Rudin <paul.nospam at>:

> Marko Rauhamaa <marko at> writes:
>> What is different is that in Python, every expression evaluates to a
>> pointer. Thus, you can only assign pointers to variables.
> I don't think that's really right - every expression evaluates to an
> object.

The object is only an intermediate result; what is returned is a pointer
(to an object), without an exception. That's not a matter of
implementation. It's an essential part of Python's data model.

(However, since "pointer" is evokes passions among crowds, it is better
to use the neutral word "leash".)