String vs Bytecode in Python Dec 28, 2019 Comments¶ Be careful that some functions return bytecode instead of string in Python 3. bytecode has similar APIs to str. Most string functions can be applied to bytecode as well. String to Bytecode¶ Newer →