Reply to post: Re: Python -- Major version changes....

For real this time, get your butt off Python 2: No updates, no nothing after 1 January 2020

Psmo Silver badge

Re: Python -- Major version changes....

bytes vs strings innovation

my Python2 code had lots of places where the code was reading and/or writing to low-level database files

Ouch. However, in my experience the Python 3 way of doing IO leads to far fewer encoding gotchas.

YMMV of course, but paste the following into a Windows-based Python 2.7 interpreter, then a 3.7 interpreter to see what I mean:

import ctypes; ctypes.windll.user32.MessageBoxW(0,"ça ne marche pas","la même",0)

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon


Biting the hand that feeds IT © 1998–2021