Python 3?

Stephan Hermann sh at sourcecode.de
Fri Dec 5 11:03:02 UTC 2008


Hi,

On Thu, 2008-12-04 at 13:01 -0700, Aaron Toponce wrote:
> Chris wrote:
> > Since Python 3 was released, how is Ubuntu going to transition it's PyGTK
> > apps to 3.0?
> > Most GNOME (and Ubuntu-centric) apps are made with Python 2.6, right?
> 
> No. Most GNOME applications are written in C, although some may be
> written in Python and other languages.
> 
> Transitioning shouldn't be difficult. Python 2.6 was released as a
> transition release to Python 3, so if any code is 2.6-compliant, it will
> run in 3 without any trouble.

No...not in general.
Python 2.6 has a -3 compatiblity switch, and you python apps can be
checked, if they would be py3k compliant.

Reading Guidos article about py3k migration is really useful:
http://docs.python.org/dev/3.0/whatsnew/3.0.html

Regards,

\sh






More information about the Ubuntu-devel-discuss mailing list