[Python-Dev] Generated Bytecode ...

Raymond Hettinger raymond.hettinger at gmail.com
Sun Oct 25 15:33:50 EDT 2015

> On Oct 22, 2015, at 10:02 AM, Brett Cannon <brett at python.org> wrote:
> So my question is, the byte code generator removes the unused functions, variables etc…, is it right?
> Technically the peepholer removes the dead branch, but since the peepholer is run on all bytecode you can't avoid it.

IIRC, the code was never generated in the first place (before the peephole pass).  This used to be true before the AST branch was added and I think it may still be true.

Raymond Hettinger

More information about the Python-Dev mailing list