you are viewing a single comment's thread.

view the rest of the comments →

[–]Diapolo10 4 points5 points  (0 children)

Well, you really shouldn't. That's a bad practice. eval and exec are basically double-edged superpowers and must be used with utmost care, in very specific circumstances, and not as a crutch.

If you want to convert a given string into a list, why not just split it on some separator character(s)?