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

Marko Rauhamaa marko at pacujo.net
Thu Jun 9 08:56:29 EDT 2016


Paul Rudin <paul.nospam at rudin.co.uk>:

> Marko Rauhamaa <marko at pacujo.net> 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".)


Marko


More information about the Python-list mailing list