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 <1343312984.08.0.717908276863.issue15452@psf.upfronthosting.co.za>
In-reply-to
Content
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:

https://gist.github.com/3182304

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