[Chicago] Passing an expression into Python then executing it

Matt Bone thatmattbone at gmail.com
Mon Dec 3 21:50:23 CET 2012


I'd avoid the problem and build a dictionary from regex's to functions.

Here's an example (in python 2.7):
http://pastebin.com/4gUBb4W8

--matt

On Mon, Dec 3, 2012 at 2:33 PM, D Mahoney <dan at streemit.net> wrote:

> '(Connection closed by ([a-zA-Z0-9.-]+)', 'groups()[0]'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/chicago/attachments/20121203/51273a6c/attachment.html>


More information about the Chicago mailing list