Difference between revisions of "Talk:Python"

From ArchWiki
Jump to: navigation, search
(Section Misc.Uses: replied about removing the 'misc. uses' section)
(Section Python Versions: fix typos. improve readability by reformatting signatures. fix reply levels)
Line 7: Line 7:
 
== <s>Section Python Versions</s> ==
 
== <s>Section Python Versions</s> ==
  
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.
+
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 Python 3.x the default, making most of my Python scripts unusable without massive user intervention. 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.<br />
 +
--‎ [[User:Nevarmaor|Nevarmaor]] 20:44, 18 November 2010 (EST)
  
 
: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?
 
: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?
:[[User:Karol|Karol]] 21:25, 18 November 2010 (EST)
+
:-- [[User:Karol|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. <br />
 +
--[[User:Mrechte|Marc Rechté]] 01:54, 16 April 2011 (EDT)
  
Is it possible to have both versions installed and let version 2 be the default one ? That would help in the transition process. Thanks. --[[User:Mrechte|Marc Rechté]] 01:54, 16 April 2011 (EDT)
 
 
: ''python'' is a symlink. To default to python2 you could<br>
 
: ''python'' is a symlink. To default to python2 you could<br>
:<pre>cd /usr/bin && sudo ln -fs python2 python</pre>
+
:{{ic|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. [[User:Modulation|Modulation]] 02:56, 16 April 2011 (EDT)
+
:However you'd have to do this every time a {{pkg|python3}} update is installed. I agree that something like ''update-alternatives'' (Debian) or ''eselect'' (Gentoo) would be nice.  
 +
:-- [[User:Modulation|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 [[User:Driadan|Driadan]] 16:16, 12 December 2011 (EDT)
+
::For development purposes one can install {{pkg|python2-virtualenv}} and set a virtual environment whose python would be python2 by default.
 +
::-- [[User:Driadan|Driadan]] 16:16, 12 December 2011 (EDT)

Revision as of 16:42, 27 August 2012

Remove Section "Misc. Uses"

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

I agree that the "Misc. Uses" section doesn't seem appropriate for the ArchWiki. The information in there seems like something I would expect to read on a blog, not on here. If anyone else agrees, I'll remove that section entirely.
-- Jstjohn (talk) 16:36, 27 August 2012 (UTC)

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 Python 3.x the default, making most of my Python scripts unusable without massive user intervention. 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.
--‎ Nevarmaor 20:44, 18 November 2010 (EST)

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 every time 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)