On Fri, Mar 22, 2019 at 5:53 PM kcrisman <
kcri...@gmail.com> wrote:
>
>
>>>
>>> print "blah"
>>>
>>> in Sage started showing a deprecation warning as of the next release?
>>>
>>> Is there really much else besides print statements that people are
>>> likely to write in the sage cell server that is Python2 only? I
>>> can't think of anything else at all off the top of my head... I
>>> realize that much of the Python2-->Python3 switch involves handling of
>>> strings/unicode/bytes and change in the way rich comparison works.
>>> However, I bet neither of those big landmines in the sage library are
>>> used in typical applications of the sage cell server.
>>>
>>> -- William
>>
>>
>> That is also a very valid point and I think it is wise to do something in Sage itself to cover all interfaces and use cases.
>>
>> Note that issues with print are somewhat similar to issues with "html(...)" which a few years back stopped displaying stuff by itself requiring "show(html(...))" or something similar. There were some complaints and problems with this, but we survived!
>
>
> Yes, agreed here. By far the greatest Py3 incompatibility will be print - though that will be a lot bigger of an issue than the pretty_print(html(...)) one. I would certainly be in support of a deprecation of the print statement within Sage, if feasible, once we really have Sage-the-distribution working fully with Py3 and the transition is only a matter of time. We'd probably want to have various pinned posts, FAQ updates - and so forth.
>
> Timing for the true switchover (i.e. no more Py2 in Sage cell)? I would recommend it were over the Northern hemisphere summer. Probably June 1 is a good date - I'd say 2020, but I know others are itching for earlier.
Python 2 is officially "end of lifed" far before June 2020:
https://pythonclock.org/
This could have real impacts, e.g., pip will no longer be supported
(only pip3), and that will matter when some security exploit comes
along, or if pypi stops supporting the repos.
> For people with high teaching loads, changing a lot of stuff over winter break is not feasible. I know not every country has that academic schedule, many people in the States even teach summer courses ... but if there had to be a time, that probably should be it.
>
> For Sage itself, ironically, people can just not upgrade. Timing is part of it, but since we still get lots of requests for support of even 5.x and 6.x that won't be as bad.
>
> William, would Sage pre-Py3 kernels be available on CoCalc for a while perhaps after a Sage switch? Just curious. Could be a useful use of an email blast to all your customers ...
Yes. I think we will still have a few sage-8.x versions for a long
time, but with no updates. Right now, we have 8.2, 8.3, 8.4, 8.5,
8.6, etc., and it's not hard to just keep older versions around. It's
only hard when we upgraded from Ubuntu 18.04 to whatever big version
we upgrade to next and have to rebuild everything. Even then, we can
keep older 18.04-based images for a while...
--
William (
http://wstein.org)