> On Oct 22, 2015, at 10:02 AM, Brett Cannon <br...@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 _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com