<br><br><div class="gmail_quote">2012/10/15 St¨¦phane Graber <span dir="ltr"><<a href="mailto:stgraber@ubuntu.com" target="_blank">stgraber@ubuntu.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 10/15/2012 04:19 AM, ÐûÃúÒÕ wrote:<br>
> can we use lxc with python2<br>
> I find a lxc binding for python3<br>
><br>
> <a href="http://www.stgraber.org/2012/09/28/introducing-the-python-lxc-api/" target="_blank">http://www.stgraber.org/2012/09/28/introducing-the-python-lxc-api/</a><br>
><br>
> But I used python2.<br>
><br>
> And Do we have a software which can manage lxc-containers such as<br>
> create,destroy,start,modify containers.But not command with shell .<br>
> Thanks.<br>
<br>
</div>The bindings are for python3 only and I don't intend to support python2<br>
as it'd mean twice the amount of implementation time and testing + a<br>
nightmare for unicode handling.<br>
<br>
python3 has now been around for a long time and should be the preferred<br>
python version for any new development.<br>
<br>
<br>
There are a few scripts already using python3-lxc to manage containers,<br>
Jonathan Carter has one on his github:<br>
<a href="https://github.com/highvoltage/llxc" target="_blank">https://github.com/highvoltage/llxc</a><br>
<span class="HOEnZb"><font color="#888888"><br>
> --<br>
> Ó£±¦±¦: <a href="http://www.xuanmingyi.com" target="_blank">http://www.xuanmingyi.com</a><br>
<br>
<br>
--<br>
St¨¦phane Graber<br>
Ubuntu developer<br>
<a href="http://www.ubuntu.com" target="_blank">http://www.ubuntu.com</a><br>
<br>
</font></span></blockquote></div><br><br>Thank you for your lib and your advice about python3.<br>
I'm so sad that you won't support python2 :(<br clear="all">Now I will use python2 and python3 in different projects at the same time !<br>OMG<br><br>-- <br>Ó£±¦±¦: <a href="http://www.xuanmingyi.com" target="_blank">http://www.xuanmingyi.com</a><br>
<br>