In a lot of cases, code can be run under both Python 2 or Python 3. There are a few notable things that you should be aware of (this blog post http://peadrop.com/blog/2009/04/05/porting-your-code-to-python-3/ is a nice overview), but the list isn't huge.
Earlier this year, I ported a number of classes that I use for image analysis (MRI stuff), and I was pleasantly surprised at how easy it was. For the most part, everything Just Worked, and I've been able to run the classes in both Python 2 and Python 3 ever since. On Wed, 2010-05-19 at 00:22 +0200, Pavel Sanda wrote: > José Matos wrote: > > On Tuesday 30 March 2010 14:37:24 Pavel Sanda wrote: > > > hi, > > > > > > anybody already using python 3 with lyx? > > > what is the situation with different distros and our compatibility with 3? > > > (gentoo has 3(.1) still in testing but slowly moving to stable target). > > > > The code needs to be converted to python 3, such as it is it will not work. > > > > Most distributions will keep python2 working for the time being as in sense > > python2 and python3 are two different languages. > > > > FWIW it should not be difficult to make our code compatible with python 3. > > Jose, is it possible to have the scripts that runs both under python 2 & 3, > so we don't have to care about it anymore? If so, could you prepare the patch? > > Pavel