|
|
|
|
|
by joshuamorton
2306 days ago
|
|
95% of the migration effort is trivial (I say this as someone who has migrated 100k+ loc myself as part of a much larger migration effort). There's things that are tricky, don't get me wrong: unicode handling can be tricky, though six.ensure_str/bytes usually allows you to defer that problem. Futurize and 2to3 do so much of the work that in my experience the majority of files can be migrated by automation, unicode warts included. The hard stuff is when you have extension modules or weird metaprogramming stuff (there's also one particular case I had to deal with around code generation). That takes effort to migrate, but it's the long tail. If you need to rewrite your code to enable the py3 transition, the issue isn't python, it's your coding choices, and you should rewrite your code anyway. |
|
I... don't even know what to make of this advice. Have you ever worked for an engineering organization with more than 5 members? I can't just go to my boss and say, "I need the next six months to rewrite our whole backend". I'd get laughed out of the room.
Without a clear, business-first reason for an engineering project of that magnitude, it's not ever going to be a priority or a realistic option.