Ask Your Question
3

Will upgrading to Python 3.x on my system break Sage?

asked 2011-02-22 07:54:28 +0200

niles gravatar image

updated 2011-02-22 08:04:25 +0200

I want to use Python 3.2 for some other things, but I know that Sage does not work with Python 3.x. But I also know that Sage comes with its own version of Python. So can I upgrade my system's Python and let Sage use it's own Python 2.x? Will this happen automatically?


A side note: The barriers to using Python 3.x in Sage, as listed on the FAQ page, are SciPy and Cython, however recent versions of both now seem to support 3.x:

edit retag flag offensive close merge delete

Comments

As another point, there is a massive amount of code in worksheets and elsewhere that assumes Python 2.x - in particular with the print statement, but presumably also in other less obvious places. So changing to Python 3.x would mean a big change for those people as well. Unless we could make all of Sage compatible with both via the preparser...

kcrisman gravatar imagekcrisman ( 2011-02-22 09:52:58 +0200 )edit

We will definitely switch to Python 3.x at some point. It's clearly the future. And you can do "set comprehensions" like "{a*a for a in range(10)}".

William Stein gravatar imageWilliam Stein ( 2011-02-23 02:00:44 +0200 )edit

We will definitely switch to Python 3.x at some point. It's clearly the future. And you can do "set comprehensions!"

William Stein gravatar imageWilliam Stein ( 2011-02-23 02:00:46 +0200 )edit

I have to say, that is definitely cool. Yes, clearly lots of benefits - just a big nightmare to port.

kcrisman gravatar imagekcrisman ( 2011-02-23 11:20:52 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted
4

answered 2011-02-22 09:01:06 +0200

Mike Hansen gravatar image

You should be able to upgrade your system Python to 3.x, and Sage should continue to work just fine. You don't need to do anything special regarding Sage.

edit flag offensive delete link more

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: 2011-02-22 07:54:28 +0200

Seen: 992 times

Last updated: Feb 22 '11