[Python-Dev] Generated Bytecode ...

Stéphane Wirtel stephane at wirtel.be
Thu Oct 22 12:36:49 EDT 2015


Hi all,

When we compile a python script 

# test.py
if 0:
	x = 1

python -mdis test.py

There is no byte code for the condition.

So my question is, the byte code generator removes the unused functions, variables etc…, is it right?

What are the cases where the generator does not generate the byte codes ?

Thank you,

Stéphane
--
Stéphane Wirtel - http://wirtel.be - @matrixise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-dev/attachments/20151022/1e5e7c1f/attachment.sig>


More information about the Python-Dev mailing list