ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 25 Apr 2012 16:02:45 +0200python 3.xhttps://ask.sagemath.org/question/8926/python-3x/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.Wed, 25 Apr 2012 15:07:42 +0200https://ask.sagemath.org/question/8926/python-3x/Answer by kcrisman for <p>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.</p>
https://ask.sagemath.org/question/8926/python-3x/?answer=13499#post-id-13499See [this ask.sagemath.org question](http://ask.sagemath.org/question/864/support-for-python-3-yes-ive-read-the-faq) - 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!)Wed, 25 Apr 2012 15:59:53 +0200https://ask.sagemath.org/question/8926/python-3x/?answer=13499#post-id-13499Comment by DSM for <p>See <a href="http://ask.sagemath.org/question/864/support-for-python-3-yes-ive-read-the-faq">this ask.sagemath.org question</a> - the FAQ needs to be updated, perhaps. But yes, it will eventually use Python 3.</p>
<p>Incidentally, since it doesn't use system Python, and since you can always <code>from __future__ import ...</code> 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.</p>
<pre><code>sage: print('5')
5
</code></pre>
<p>and the new string formatting stuff works</p>
<pre><code>sage: '{0}, {1}, {2}'.format('a', 'b', 'c')
'a, b, c'
</code></pre>
<p>so what are you waiting for? (Only half-joking! Try it out!)</p>
https://ask.sagemath.org/question/8926/python-3x/?comment=19865#post-id-19865Given 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!)Wed, 25 Apr 2012 16:02:45 +0200https://ask.sagemath.org/question/8926/python-3x/?comment=19865#post-id-19865