Ask Your Question
2

python 3.x

asked 2012-04-25 15:07:42 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I read previously that Sage would support python 3 when SciPy and Cython worked with 3.x. Since both SciPy and Cython now both support 3.x is Sage also now compatible? I am waiting to use Sage until it works with Python3.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-04-25 15:59:53 +0100

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

See this ask.sagemath.org question - the FAQ needs to be updated, perhaps. But yes, it will eventually use Python 3.

Incidentally, since it doesn't use system Python, and since you can always from __future__ import ... something if you really need it, there's no need not to start using Sage now! Python 2.7 uses much of the new stuff optionally.

sage: print('5')
5

and the new string formatting stuff works

sage: '{0}, {1}, {2}'.format('a', 'b', 'c')
'a, b, c'

so what are you waiting for? (Only half-joking! Try it out!)

edit flag offensive delete link more

Comments

Given how long it took for the 2.7 switch, I expect this to take a lot longer than we might hope (esp. because it depends to some extent upon others). The good news is that 3.3 will be out before we get started (yield from, yay!)

DSM gravatar imageDSM ( 2012-04-25 16:02:45 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-04-25 15:07:42 +0100

Seen: 2,367 times

Last updated: Apr 25 '12