Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Portage and python 2.x
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1462

PostPosted: Thu Apr 05, 2012 6:43 pm    Post subject: Portage and python 2.x Reply with quote

I see that the current x86 32-bit Stage3 files contain python 3.2 and no longer have any python 2.x.
Does this mean that portage is now 3.x compatible (and no longer 2.x compatible)?

Thanks - Will
Back to top
View user's profile Send private message
jdhore
Developer
Developer


Joined: 13 Apr 2007
Posts: 105

PostPosted: Thu Apr 05, 2012 7:22 pm    Post subject: Re: Portage and python 2.x Reply with quote

cwr wrote:
I see that the current x86 32-bit Stage3 files contain python 3.2 and no longer have any python 2.x.
Does this mean that portage is now 3.x compatible (and no longer 2.x compatible)?

Thanks - Will


Portage is currently compatible with BOTH Python 3.x and 2.x and has been for quite a while.
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1462

PostPosted: Thu Apr 05, 2012 10:02 pm    Post subject: Reply with quote

Thanks - I didn't know that was even possible.

Will
Back to top
View user's profile Send private message
Hu
Watchman
Watchman


Joined: 06 Mar 2007
Posts: 7614

PostPosted: Fri Apr 06, 2012 1:25 am    Post subject: Reply with quote

It is possible since the restrictions imposed by the Python 3 interpreter (e.g. print is no longer a keyword) happen to be valid Python 2 syntax. I suspect this was intentional, to ease the process of converting code to run under Python 3. Although Python 3.x offers new features, any script which avoids using those features can be run by a recent Python 2.x interpreter. At some point, the lure of new language features may become strong enough to justify dropping Python 2 support, but that has not happened yet.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum