Ubuntu Forums Archive Viewer

Python3 as default python version?

Archived thread 1744099 from Oneiric Ocelot Testing and Discussion (CLOSED). Markdown source: Oneiric_Ocelot_Testing_and_Discussion_(CLOSED)/thread_1744099_Python3_as_default_python_version.md

Original URL About this archive
#1

Title says it all. Will oneiric use python2 or python3 as default python version?

#2

Maybe it'll come out of the summit meeting but i'm fairly sure *lots* of things would break so it would need many hands on the python app bugs.

#3

The decision will most likely follow debian's lead. As many packages depend on the various debian python related packages, etc.

http://www.debian.org/doc/packaging-manuals/python-policy/ch-python.html

#4

`python' on Arch has defaulted to python3, as I realized when trying to run one of my scripts, which complained. They seem to be in pretty good shape, so I think it shouldn't be as bad to switch.

#5

manzdagratiano said: `python' on Arch has defaulted to python3, as I realized when trying to run one of my scripts, which complained. They seem to be in pretty good shape, so I think it shouldn't be as bad to switch.

During the development of Natty cycle, there was the shift from python2.6 to python2.7. Of course it would be interesting have python3 (possibly v. 3.2) in Oneiric. It really should not differ much from what was experienced during Natty cycle. The python2.7 and python3 can coexist in the same setup.

#6

Sure but packages and scripts are going to use default version.

#7

Yeeha said: Sure but packages and scripts are going to use default version.

True of course. I just meant during the transitional phase both could be installed.

#8

Yeeha said: Title says it all. Will oneiric use python2 or python3 as default python version?

Highly doubt it, maybe 12.10 so there's some room to fix all the breakage before the next LTS after 12.04.

#9

ikt said: Highly doubt it, maybe 12.10 so there's some room to fix all the breakage before the next LTS after 12.04.

Python3.2 is seriously planned to be part of Oneiric. This means as many applications as possible will be rewritten against it. Also, as the total transitition towards python 3.2 will likely not happen, we will see Oneiric have both python2.7 and 3.2 in default installation. And python2.6 is dropped.

See here: https://blueprints.launchpad.net/ubuntu/+spec/desktop-o-unity2d-qt-cdspace

#10

Harry33 said: This means as many applications as possible will be rewritten against it.

That doesn't change that years and years worth of work can't be changed in 6 months.

#11

Well the python3.2 porting has already began now.

See, the latest apt_0.8.14-1ubuntu2 (package apt-utils) depends on libdb5.1 (old apt-utils depended on libdb4.8 ). Python3.2 also depends on libdb5.1 (python2.7 depends on libdb4.8 ).

#12

Oh come on, Python 2.x to 3.x isn't that radical a change. The changes are minor from a compatibility perspective, there are even scripts to translate python2 to python3. Yes, "years of work" could easily be translated from python2 to python3 in a half a year. No need to stick to the Debian's "release stable, release twice a century" MO.

#13

ag93igrvigkgdwj1bnr1pw== said: oh come on, python 2.x to 3.x isn't that radical a change. The changes are minor from a compatibility perspective, there are even scripts to translate python2 to python3. Yes, "years of work" could easily be translated from python2 to python3 in a half a year. No need to stick to the debian's "release stable, release twice a century" mo.

+1

#14

ikt said: That doesn't change that years and years worth of work can't be changed in 6 months.

Isn't there a script or something that ports 2.x to 3.x?

#15

harry33 said: +1

+2

EDIT: Oops, this was supposed to be an edit to my last post, lol.

#16
#17

2.7 has most of 3.x backported plus not all libraries have been ported (completely) to 3.x yet like PyGTK IIRC.