title: Why doesn't python have a attrsetter (and what would it take to make one)?
body: <p><code>operator</code> provides <code>attrgetter</code> to make a function that retrieves a field from an object.</p>
  
  <p>Why isn't this included in  <code>operator</code> (or somewhere else in the standard libraries)? </p>
  
  <pre><code>def attrsetter(name):
      def setter( obj, val):
          setattr(obj, name, val)
      return setter
  </code></pre>
  
  <p>The only reason that I can think of is that there are edge cases where this straightforward approach will break.  In which case, what are these edge cases so that I can try to trap/avoid them?</p>