On Thursday, March 01, 2012 09:39:25 PM Frank Reininghaus wrote:
> Hi,
> 
> Am 27. Februar 2012 04:29 schrieb Wolfgang Mader:
> > Dear kde-devel list,
> > 
> > I tried to compile kde-workspace in a python 3 environment and
> > encountered statements which are only valid for python 2. For example
> > 
> > File                              Statment     Statement p3
> > plasma_importer.py     exec            exec()
> > plasmascript.py           print            print()
> > 
> > The major difference we face here is the functional form which is the
> > only one allowed in python 3 for some statements. As far as I know,
> > this form is also valid for python 2. I would be happy to prepare
> > python2->python3 transition patches whenever I came across a problem.
> > Therefore, I am asking here if such patches would be welcome and if
> > there is someone to turn to in case of questions and to assure quality.
> 
> you might want to ask on the plasma-devel list what the Plasma people
> think about your idea. But I would guess that any change that makes
> the scripts fit for Python 3 and does not break Python 2 is welcome

As long as you're willing to restrict your Python version to Python 2.6 or 2.7 
then it is usually very easy to write code that supports both versions.  If 
Support for Python 2.5 or earlier is still required, then it's much more 
difficult.

Scott K

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to