KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
setattr and getattr kind of got into my style of programing (mainly scientific stuff, my knowledge about python is self taught). Considering that exec and eval inherit a potential danger since in some cases they might lead to security issues, I was wondering if for setattr the same argument is considered to be valid. (About getattr I found this question which contains some info - although the argument is not very convincing.) From what I know, setattr can be used without worrying too much, but to be honest I don't trust my python knowledge enough to be sure, and if I'm wrong I'd like to try and get rid of the habit of using setattr .
Tags (comma-separated)
Save Edits
Cancel