[Zope3-dev] Re: Build problem

Ruslan Spivak rspivak at nuxeo.com
Fri Sep 2 15:48:12 EDT 2005


Benji York <benji at zope.com> writes:

> Fred Drake wrote:
>> On 9/2/05, Dmitry Vasiliev <lists at hlabs.spb.ru> wrote:
>> I now agree that the change is reasonable.  It needs a comment that
>> it's protecting against importing *installed* versions of ZConfig.
>
> It would also be nice if it used .insert() instead of a [:0] slice.

Hello, Benji.

I think Dmitry used that because of slice assignment and i don't see 
how it can be done with index assignment of insert():

>>> lst = [1, 2, 3]
>>> lst[:0] = [8, 9]
>>> lst
[8, 9, 1, 2, 3]


>>> lst = [1, 2, 3]
>>> lst.insert(0, [8, 9])
>>> lst
[[8, 9], 1, 2, 3]


Regards,
Ruslan



More information about the Zope3-dev mailing list