From: Gianni Tedesco Subject: Re: [PATCH,RFC]: Introduce libxl_domain_create() Date: Tue, 21 Dec 2010 14:15:59 +0000 Message-ID: <1292940959.11246.89.camel@qabil.uk.xensource.com> References: <1292353212.11246.35.camel@qabil.uk.xensource.com> <1292576770.32368.11405.camel@zakaz.uk.xensource.com> <1292921096.11246.55.camel@qabil.uk.xensource.com> <19728.37132.470936.457946@mariner.uk.xensource.com> <1292936823.11246.80.camel@qabil.uk.xensource.com> <19728.45659.578525.724933@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <19728.45659.578525.724933@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Jackson Cc: Ian Campbell , Xen Devel , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Tue, 2010-12-21 at 13:57 +0000, Ian Jackson wrote: > Gianni Tedesco writes ("Re: [Xen-devel] [PATCH,RFC]: Introduce libxl_domain_create()"): > > Python, for example, has no concept of an array nor any remotely similar > > data structure. > > Python calls them lists. The literal constructor is []. You can > iterate over them and efficiently retrieve and set elements by index > number. Ie, they are arrays. Hmm, they are lists :) They behave entirely like lists but look like arrays. > > The way I have developed the current xl binding is that C-structs are > > embedded inside python objects which wrap them. To be fair I could > > probably auto-generate list <-> array marshalling functions to go each > > way so it's not impossible. > > I don't see in what way a Python list is not an array or what the > fundamental difficulty is here. Well, when I have a list of PyFoo then I can't back that with an array of Foo that's all. > Ian.