This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author berker.peksag
Recipients berker.peksag, docs@python, jfine2358
Date 2018-08-18.16:49:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1534610959.82.0.56676864532.issue34431@psf.upfronthosting.co.za>
In-reply-to
Content
Thank you for your report.

Quoting from https://docs.python.org/3.6/library/functions.html#eval

    This function can also be used to execute arbitrary code objects
    (such as those created by compile()). In this case pass a code
    object instead of a string.

So, your example is already documented as a legal way of using the eval() function.

I don't see anything wrong here.
History
Date User Action Args
2018-08-18 16:49:19berker.peksagsetrecipients: + berker.peksag, docs@python, jfine2358
2018-08-18 16:49:19berker.peksagsetmessageid: <1534610959.82.0.56676864532.issue34431@psf.upfronthosting.co.za>
2018-08-18 16:49:19berker.peksaglinkissue34431 messages
2018-08-18 16:49:19berker.peksagcreate