From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacek Konieczny Subject: Re: Python 3 support Date: Mon, 07 Jul 2014 10:05:25 +0200 Message-ID: <53BA54C5.5020603@jajcus.net> References: <53B9D79F.1000401@yahoo.ca> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53B9D79F.1000401@yahoo.ca> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Alex Xu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 07/07/14 01:11, Alex Xu wrote: > Is there any Python 3 support planned? That would be great, but I have heard nothing of such plans. > I would like to write my libxl scripts in Python 3 instead of 2. [...] > I tried porting Xen manually using such blunt instruments as 2to3 -w, > but encountered obvious difficulties due to the complexity of the code. I have chosen to use Xen libxenlight, libxenstore and libxenctrl directly through the 'ctypes' module from my Python 3 applications (I made some custom wrappers). It is not the most elegant solution and requires careful updates for any new major Xen version, but works and can sometimes provide more or better functionality than the Python modules included with the Xen distribution (they are not very actively maintained). Unfortunately, any upstream Xen Python utilities still depend on Python 2, so it may be hard to have a Xen system free of the old Python interpreter. Greets, Jacek