List slice assignment and custom sequences

Alex Martelli aleax at aleax.it
Tue Nov 5 11:02:54 EST 2002


Michael Hudson wrote:

> Ronald Oussoren <oussoren at cistron.nl> writes:
> 
>> No, I want to replace part of a sequence by another sequence. I don't
>> understand _why_ the RHS must be a list if the LHS is one.
> 
> Because Objects/listobject.c:list_ass_slice pokes directly into the
> object passed on the RHS.
> 
> A patch to change this would have some chance of getting accepted;
> wouldn't like to guess what, but I'd hazard non-zero.

Done -- just submitted as patch 633870 on Sourceforge, pls review.


Alex






More information about the Python-list mailing list