Category Archives: Moving to Python 3

Python3 pickling

Recently I was converting some old Python2 code to Python3 and I ran across a problem pickling and unpickling. I guess I would say it wasn’t a major problem because I found the solution fairly quickly with a bit of … Continue reading

Posted in Moving to Python 3

Newline conversion in Python 3

I use Python on both Windows and Unix.  Occasionally when running on Windows  I need to read in a file containing Windows newlines and write it out with Unix/Linux newlines.  And sometimes when running on Unix, I need to run … Continue reading

Posted in Moving to Python 3 | 7 Comments

How do I reverse a string in Python 3?

With the improved support for Unicode in Python3, more and more folks will be working with languages (Arabic, Hebrew, etc.) that read right-to-left rather than left-to-right. So more and more folks will have a need to reverse a string. Unfortunately, … Continue reading

Posted in Moving to Python 3 | 12 Comments