All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Alex Xu <alex_y_xu@yahoo.ca>, xen-devel@lists.xen.org
Subject: Re: Python 3 support
Date: Mon, 7 Jul 2014 10:34:15 +0100	[thread overview]
Message-ID: <53BA6997.2080502@citrix.com> (raw)
In-Reply-To: <53B9D79F.1000401@yahoo.ca>


[-- Attachment #1.1: Type: text/plain, Size: 1279 bytes --]

On 07/07/14 00:11, Alex Xu wrote:
> Please CC me on replies.
>
> Is there any Python 3 support planned?

Not specifically, although it certainly would be nice to get done.

>  I would like to write my libxl
> scripts in Python 3 instead of 2.

Which bits are you looking for py3 support with?

>
>
> I tried searching the mailing list archives and Google but got no useful
> answers.
>
> I tried porting Xen manually using such blunt instruments as 2to3 -w,
> but encountered obvious difficulties due to the complexity of the code.

The compiled python extensions shouldn't be too hard to adjust to being
Py3 compatible.  There are a standard set of macros used for making Py2
and Py3 .so's from a single source.

The python scripts however are rather more difficult.  For better or for
worse, our current support statement is for Python 2.3 and later, which
vastly limits the ability to make join Py2/Py3 single .py files

Changing the supported version to 2.4 would help a little, but wouldn't
make it much easier.  We certainly can't move the minimum supported
version to anything newer than 2.4 for the forseeable future, as
RHEL/CentOS 5.x era OSes are still in supported and active use.

There is probably some work which can be done to make 2to3 more effective.

~Andrew


[-- Attachment #1.2: Type: text/html, Size: 1937 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

      parent reply	other threads:[~2014-07-07  9:34 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
2014-07-07 10:56   ` Ian Campbell
2014-07-07  9:34 ` Andrew Cooper [this message]

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=53BA6997.2080502@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --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.