From: Jesús Gabriel y Galán on
On Tue, Feb 16, 2010 at 7:01 PM, Robert Klemme
<shortcutter(a)googlemail.com> wrote:
> On 02/15/2010 05:50 PM, Jesús Gabriel y Galán wrote:
>>
>> 2010/2/15 Jesús Gabriel y Galán <jgabrielygalan(a)gmail.com>:
>>>
>>> I think it might be because the parallel assigment creates an array
>>> under the hood?
>
> However it is done technically, parallel assignment needs more space because
> it has to evaluate *all* right hand sides before doing any assignments.
>  Otherwise swapping would not be possible
>
> a, b = b, a

Good point.

> So, yes, it's likely an Array under the hood

Yep, that was my thought and that's why I checked with ObjectSpace,
that indeed shows Arrays being created.
It was easier for me than checking the implementation :-).

Jesus.