Python 3.3 compatibility
by asegurap@redhat.com
Hi List,
Yesterday I had a few idle hours after dinner and I started porting parts of
oVirt's vdsm to be compatible with Python 2.6, 2.7 and 3.3 (unified codebase).
In order to get the networking part working we need python-ethtool to work in
Python 3. For this, I started working on a series of patches to allow just
that:
https://github.com/celebdor/python-ethtool/tree/py3k
The current status is that python-ethtool builds in python up to 3.3 and some
parts work. I still get segfaults with etherinfo objects (which I believe to
related to encoding issues with the PyUnicode/PyBytes/char * conversions.
What works(so far tested):
- importing the module
- using ethtool.get_*
Do you have some testsuite for it?
Best,
Toni
10 years, 8 months