Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

"print" statement vs function for Sage-py3

With the upcoming migration of Sage from Python2 to Python3, I was wondering if Sage's default new behavior will be the current print statement (e.g., print 'hello') or will it change to Python3's print command (e.g., print('hello')).

In case of a change from the current behavior, will there be a way to keep backwards compatibility for code written Python2-style?

Thanks for your answers!

click to hide/show revision 2
retagged

"print" statement vs function for Sage-py3

With the upcoming migration of Sage from Python2 to Python3, I was wondering if Sage's default new behavior will be the current print statement (e.g., print 'hello') or will it change to Python3's print command (e.g., print('hello')).

In case of a change from the current behavior, will there be a way to keep backwards compatibility for code written Python2-style?

Thanks for your answers!