title: Can the usage of `setattr` (and `getattr`) be considered as bad practice?
body: <p><code>setattr</code> and <code>getattr</code> kind of got into my style of programing (mainly scientific stuff, my knowledge about python is self told). </p>
  
  <p>Considering that <code>exec</code> and <code>eval</code> inherit a potential danger since in some cases they might lead to security issues, I was wondering if for <code>setattr</code> the same argument is considered to be valid. (About <code>getattr</code> I found <a href="https://stackoverflow.com/questions/2909423/is-it-bad-practice-to-use-pythons-getattr-extensively">this question</a> which contains some info - although the argumentation is not very convincing.)</p>
  
  <p>From what I know, <code>setattr</code> can be used without worrying to 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 <code>setattr</code>.</p>
  
  <p>Any input is very much appreciated!</p>