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, vinay.sajip
Date 2012-07-26.14:29:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Initial evaluation indicates that ast.literal_eval doesn't cut the mustard: it doesn't do any name lookups, so you can't for example successfully evaluate something like 'handlers.WatchedFileHandler' or even 'FileHandler'. 

However, a limited evaluator which goes further than ast.literal_eval will probably work. One such is shown in this Gist:

It supports a reasonable subset of Python expressions and also could be useful in other contexts than logging configuration.
Date User Action Args
2012-07-26 14:29:44vinay.sajipsetrecipients: + vinay.sajip, ncoghlan, Arfrever
2012-07-26 14:29:44vinay.sajipsetmessageid: <>
2012-07-26 14:29:42vinay.sajiplinkissue15452 messages
2012-07-26 14:29:42vinay.sajipcreate