From ArchWiki
Revision as of 15:06, 13 December 2011 by Driadan (Talk | contribs)

Jump to: navigation, search

Section Misc.Uses

I would remove the "Misc. Uses" section altogether ("Python is excellent for emergency situations"???) Tokland 06:12, 25 October 2010 (EDT)

Section Python Versions

See, this is why I'm seriously looking for an alternativie to Arch (which is sad, since I've been using Arch for almost a year now and it really is overall a nice distro) BUT - most python scripts I use still rely on 2.x (and why they HAD to break that I am still unclear on) yet Arch decided to make pythion 3.x the default, making most of my python scripts unusable without massive user inervention. Pity. You've lost my faith. I may have to break down and revert to Debian - or Fedora - or (shudder) Suse. Oh if only FreeBSD had native flash support.

I'm not sure what you call massive user intervention (a sed oneliner?), but I have both python2 and 3 installed and things seem to work OK. Arch is bleeding edge, so things might eventually break and the transition 2to3 is not an easy one. Are Arch devs to blame for the fact that the scripts still use python2?
Karol 21:25, 18 November 2010 (EST)

Is it possible to have both versions installed and let version 2 be the default one ? That would help in the transition process. Thanks. --Marc Rechté 01:54, 16 April 2011 (EDT)

python is a symlink. To default to python2 you could
cd /usr/bin && sudo ln -fs python2 python
However you'd have to do this everytime a python3 update is installed. I agree that something like update-alternatives (debian) or eselect (gentoo) would be nice. Modulation 02:56, 16 April 2011 (EDT)

For development purposes one can install python2-virtualenv and set a virtual environment whose python would be python2 by default Driadan 16:16, 12 December 2011 (EDT)