News for hackers. Stuff that matters.
Re:JPMorgan still has its Python 2 issues by eesmith on Saturday February 06, 2021 @07:54AM (#26046199)
If there's a mix of byte and unicode strings then 2to3 won't work. Consider:

  with open("a", "rb") as f:
    with open("b", "w") as g:
       g.write(">" + f.read(1))
There are also conversions in Python 2 between byte and string which aren't supported in Python 3:

  s = "123".encode("hex")
  t = "abcd".decode("hex")

There are no comments on this comment yet.