- Optimize out the
__debug__
constant at compile time. See bpo-27169. - Make handling of sys.flags.optimize closer to CPython and fix compile(..., optimize=-1)
- kill JUMP_IF_NOT_DEBUG opcode and increment magic number: like on CPython, the bytecode interpreter now always runs assert statements if they were compiled in.
- Set default value for 'optimize' param to compile() to -1