Ask Your Question
3

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

asked 14 years ago

niles gravatar image

updated 14 years ago

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:

Preview: (hide)

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

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

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

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

kcrisman gravatar imagekcrisman ( 14 years ago )

1 Answer

Sort by » oldest newest most voted
4

answered 14 years ago

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.

Preview: (hide)
link

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

Seen: 1,087 times

Last updated: Feb 22 '11