List slice assignment and custom sequences

Michael Hudson mwh at python.net
Tue Nov 5 12:45:36 EST 2002


Alex Martelli <aleax at aleax.it> writes:

> 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.

Not only reviewed, but BDFL approved and checked in!

that-one-went-quickly-ly y'rs
M.

-- 
  ZAPHOD:  Listen three eyes, don't try to outwierd me, I get stranger
           things than you free with my breakfast cereal.
                    -- The Hitch-Hikers Guide to the Galaxy, Episode 7



More information about the Python-list mailing list