Byte Code

  • Larry

Why?

some bad reasons

  • what’s really going on (but where did you stop)
  • hand tuned byte code !@#! (can be broken from one python version to the next)

Example

def gunk(a=1, *args, b=3):
    print(args)
    c = None
    return (a + b, c)

disassemble with the dis library

>>> dis.dis(gunk)

shows the byte code

  • opcodes
  • big picture
  • asdfsa

Table Of Contents

Previous topic

Python for Configuration Management (with Ansible)

Next topic

Mining Python Software

This Page