Nick the Gr33k <supp...@superhost.gr> writes: > On 15/6/2013 8:27 πμ, Larry Hudson wrote: >> Also they do NOT return "a variable's truthy value", they return the >> variable itself. > > No, as seen from my above examples, what is returned after the expr > eval are the actual variables' values, which in turn are truthy, *not* > the variable itself.
In the context we are talking about, "the variable itself" has the very same meaning as "the actual variable value": >>> mylist = ['foo'] >>> emptylist = [] >>> result = emptylist or mylist >>> result.append('bar') >>> result is mylist True >>> print(mylist) ['foo', 'bar'] ciao, lele. -- nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia. l...@metapensiero.it | -- Fortunato Depero, 1929. -- http://mail.python.org/mailman/listinfo/python-list