All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jacek Konieczny <jajcus@jajcus.net>
To: Alex Xu <alex_y_xu@yahoo.ca>, xen-devel@lists.xen.org
Subject: Re: Python 3 support
Date: Mon, 07 Jul 2014 10:05:25 +0200	[thread overview]
Message-ID: <53BA54C5.5020603@jajcus.net> (raw)
In-Reply-To: <53B9D79F.1000401@yahoo.ca>

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

  reply	other threads:[~2014-07-07  8:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-06 23:11 Python 3 support Alex Xu
2014-07-07  8:05 ` Jacek Konieczny [this message]
2014-07-07 10:56   ` Ian Campbell
2014-07-07  9:34 ` Andrew Cooper

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53BA54C5.5020603@jajcus.net \
    --to=jajcus@jajcus.net \
    --cc=alex_y_xu@yahoo.ca \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.