On Sep 11, 3:11 pm, David Harvey <[EMAIL PROTECTED]> wrote:
> On Sep 11, 2007, at 8:59 AM, Jaap Spies wrote:
>
>
>
>
>
> > Hamptonio wrote:
> >> Many of you are probably already aware of this, but there is an early
> >> alpha release of python 3000 that came out a couple of weeks ago. I
> >> thought that might be worth pointing out now so folks can take a look
> >> and get used to it early. The final release is tentatively scheduled
> >> for late 2008:
>
> >>http://www.python.org/download/releases/3.0/
>
> >> I would think most of the python in sage is relatively clean code
> >> that
> >> won't need a lot of changing, but it will help if we avoid conflicts
> >> now.
>
> > There is a tool for translating existing code to Python 3k.
> >http://svn.python.org/view/sandbox/trunk/2to3/
>
> > And in Python-2.6 (not yet released) there will be code to isolate
> > known issues.
>
> What I'm more worried about is cython compatibility, especially if
> python internals have changed a lot.
>
> david
Well,
I figured I would give it a try and after installing 3Ka1 into
$SAGE_LOCAL and restarting a global rebuild I got the first failure in
gd:
object : SyntaxError('invalid syntax', ('Setup.py', 74, 29, '
print "WARNING: Missing", string.join(missing, ", "),
"Libraries"\n'))
type : SyntaxError
refcount: 4
address : 0x13c093f0
lost sys.stderr
[4672 refs]
Failure to build gdmodule
The fix shouldn't be obvious - the interesting question is if we want
to keep an eye on these issues this early in the game. We could/should
supply fixes upstream if we decide to do so. Overall we have plenty of
time for the switch because 2.x will be maintained in parallel with
3.x for at least two years. And because we build from sources we can
pretty much switch any time we want. I would be willing to maintain an
experimental Python3 spkg that tracks Python's svn (or whatever they
use these days) closely.
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---