On Sat, Feb 15, 2014 at 11:18 PM, Gregory Ewing
<greg.ew...@canterbury.ac.nz> wrote:
> Chris Angelico wrote:
>>
>> But yes, this is an expression, and it evaluates to a reference.
>
>
> Well, *all* expressions in Python evaluate to references,
> so that's not really saying much.

Because everything in Python is an object, and objects always are
handled by their references. This wouldn't be true in every language
(eg it's not true of Java's unboxed types), but it's intrinsic to
Python's object model.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to