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 vinay.sajip
Recipients Arfrever, ncoghlan, python-dev, vinay.sajip
Date 2012-10-02.15:07:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1349190467.26.0.405110483428.issue15452@psf.upfronthosting.co.za>
In-reply-to
Content
I've updated logging as discussed in this issue, except for the removal of the two calls to eval() in logging.config. I propose to resolve that as follows:

1. Add the Evaluator implemented in the Gist I linked to to ast.py.
2. Expose a function 'ast.lookup_eval(source, context, allow_import)' which basically just does a

    return Evaluator(context, allow_import).evaluate(source, '<lookup_eval>')

3. Add docs and tests to ast.rst and test_ast.py.
4. Update logging.config to call ast.lookup_eval() instead of eval().

Please comment if you see any problems with this, otherwise I will go
ahead and implement this change within the next week or so.
History
Date User Action Args
2012-10-02 15:07:47vinay.sajipsetrecipients: + vinay.sajip, ncoghlan, Arfrever, python-dev
2012-10-02 15:07:47vinay.sajipsetmessageid: <1349190467.26.0.405110483428.issue15452@psf.upfronthosting.co.za>
2012-10-02 15:07:47vinay.sajiplinkissue15452 messages
2012-10-02 15:07:46vinay.sajipcreate