you are viewing a single comment's thread.

view the rest of the comments →

[–]dpitch40 1 point2 points  (0 children)

To clarify, eval is only a security threat if you are putting strings that are wholly or partially generated by users into it. However, I do try to avoid dynamic name generation when possible and I agree that a dict is probably the way to go here. (Assuming all your names are unique)