This looks helpful: http://python-future.org/compatible_idioms.html
I was looking for a simple-minded person's guide to what they would actually have to change to make the transition. There is a lot of ranting out there and stuff wriiten for people for whom programming seems more and end in itself than a means to an end. Apart from print there is string stuff (not very relevant for users or most ordinary developers), iteration through dictionaries, xrange & range, map & imap, zip & izip, and that is about it (filtering by things which I think *I* would need to know and change for Sage development. John On 25 May 2016 at 11:38, Simon King <simon.k...@uni-koeln.de> wrote: > Hi William, > > On 2016-05-24, William Stein <wst...@gmail.com> wrote: >> The last thing we want is: >> >> - I upgraded to Sage-7.3 and *all* my 100s of worksheets I use in >> teaching broke due to print statements. I spent 10 hours going >> through and fixing them all -- ugh. Misery. >> >> Then... >> >> - I upgraded to sage-7.5 and all my code broke again due to (some >> other python3 feature we enable)... I spent 10 hours going through >> and fixing them all -- ugh. Misery and pain. >> >> Then... >> >> - I upgraded to Sage-8.0 and all my code broke badly again due to >> Sage switching to Python3! I spent hours rewriting my code a third >> time, running scripts (like the 2-to-3 convertor, but preparser >> aware?), etc. > > +1 > > I found it quite annoying when my spkg stopped working for some > silly reason, I fixed it, then it broke for another reason, etc. That > frustrating experience shouldn't happen too often. > > Cheers, > Simon > > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To post to this group, send email to sage-devel@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-devel. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.