"Calvin Spealman" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Absolutely an irrelevent side effect, especially when you take into
> consideration the 4 and counting alternative implementations of the
> language.
>
> None the less, I can explain why it is as it is, keeping in mind its
> not like that on purpose, its just how it is. Locals are optimized
> into an array for fast lookup. Every name assigned to in a function is
> known as a local in that function and this internal array holds its
> reference. It is simply a product of the array indexes and deletion
> order being the same, 0 to N.
>

Oh good!  Now I can write code that relies on this behavior!

-- Paul 


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to