View Single Post
Old 5th April 2009
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

Hmm, haven't heard about ast.literal_eval() yet, thanks. I'm most used to the restricted eval (reval) in Safe.pm - and advise a .40 S&W to the cranium before doing an [r]?eval "" on user supplied code in any language.

eval is nicer for internal trickery.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote