bytes.decode() in Python2 and Python3
bytes.decode() in Python2 and Python3 Question: In the source code of sqlalchemy I see following val = cursor.fetchone()[0] if util.py3k and isinstance(val, bytes): val = val.decode() Why we do decode only for Python3 and doesn’t do it for Python2? Asked By: Rudziankoŭ || Source Answers: You can check out a detail documentation of string encoding …