Discussion:
[vbox-dev] Port vboxapi to Python 3
Ilya Kulakov
2014-04-19 06:49:13 UTC
Permalink
Here is the first patch from the set of patches I?m working on in order to port vboxapi to Python 3.

It addresses various syntax issues, indention issues and introduces some reformatting in order to conform the PEP8 style.
For compatibility with Python 3, I added branching at the very top of the file that adds unified print_ function, xrange and long.

This patch alone should bring Python 3 compatibility to the Windows platform because it does not use PyXPCOM.
Port of PyXPCOM to Python 3 is currently work in progress.

The patch is released under the MIT license.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vboxapi.diff
Type: application/octet-stream
Size: 46890 bytes
Desc: not available
Url : http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140419/296a306c/attachment-0001.obj
Ilya Kulakov
2014-04-22 13:21:16 UTC
Permalink
Since the last patch I found 2 issues:
- In one place I forgot to replace python2.6+ execpt syntax with python2.3 compatible
- Forgot to replace all that __dict__ magic with python3 compatible setattr/getattr

Updated patch is attached.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vboxapi2.diff
Type: application/octet-stream
Size: 47801 bytes
Desc: not available
Url : http://www.virtualbox.org/pipermail/vbox-dev/attachments/20140422/e59fc14e/attachment-0001.obj
-------------- next part --------------




Best regards,
Ilya Kulakov

Loading...