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''.