Hi,
Is there some work in progress to have wxPython working with python 3?
I started to hack in my working copy, and after a few hours I came
with a mostly working wxPython on top of CPython 3.2a0.
The demo now mostly works correctly!
The port was not easy, I fixed errors when I encountered them while
compiling and running. I did not use the 2to3 tool.
I had to use swig 2.0.0, with a slight change because
PyCObject_Import() was removed between 3.1 and 3.2 (the PyCapsule
object is now the official way to share C pointers)
The swig 2.0 patch: http://paste.pocoo.org/show/253494/
The wxPython patch: http://paste.pocoo.org/show/253496/
The patch is not perfect:
- I only tested on Windows
- I used svn trunk for both wxWidgets and wxPython, and they don't
exactly match. The patch contains some changes that really belong to a
2.9.1 -> 2.9.2 migration.
- Also, I did not try to keep backward compatibility: the new code
cannot run with a CPython 2.x
IMO the last point is the most important for any py3k support.
python 2.6 has some support for helping with 2->3 conversion (from
__future__ import print_function, unicode_literals), do we want to
support 2.5 as well?
What do you think?
Which priority do you give to a py3k port of wxPython?
Cheers,
···
--
Amaury