| View previous topic :: View next topic |
| Author |
Message |
cwr Veteran

Joined: 17 Dec 2005 Posts: 1462
|
Posted: Thu Apr 05, 2012 6:43 pm Post subject: Portage and python 2.x |
|
|
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 |
|
 |
jdhore Developer

Joined: 13 Apr 2007 Posts: 105
|
Posted: Thu Apr 05, 2012 7:22 pm Post subject: Re: Portage and python 2.x |
|
|
| 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 |
|
 |
cwr Veteran

Joined: 17 Dec 2005 Posts: 1462
|
Posted: Thu Apr 05, 2012 10:02 pm Post subject: |
|
|
Thanks - I didn't know that was even possible.
Will |
|
| Back to top |
|
 |
Hu Watchman

Joined: 06 Mar 2007 Posts: 7614
|
Posted: Fri Apr 06, 2012 1:25 am Post subject: |
|
|
| 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 |
|
 |
|