First time here? Check out the FAQ!

Ask Your Question
2

python 3.x

asked 12 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
2

answered 12 years ago

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!)

Preview: (hide)
link

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 ( 12 years ago )

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: 12 years ago

Seen: 2,378 times

Last updated: Apr 25 '12