Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Comments¶
Be careful that some functions return bytecode instead of string in Python 3.
bytecodehas similar APIs tostr. Most string functions can be applied to bytecode as well.
String to Bytecode¶
"abc".encode()b'abc'ByteCode to String¶
b"abc".decode()'abc'