Skip to content

Comment on Can I Use Python 3?

Comments

I ported a python2 app with py2to3 a couple months ago and it wasn't completely painless.

The worst problem I ran into was that it didn't know which strings were supposed to be bytes or unicode. And the program would throw a runtime error when it tried to do something like use a byte regex on a unicode string.

That's not a bad thing, though. That signifies ambiguity in your code. You're better off fixing problems like that than you are letting them go undetected or unfixed.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.