title: How Do I Keep Python Code Under 80 Chars Without Making It Ugly?
body: <p>This is a question that keeps recurring in all of my programming, python and otherwise. I really like to keep my code under 80 chars if at all possible/not horribly ugly. In a language like Perl, this isn't too hard since white space doesn't matter. In Python, where it does, I wind up knocking my head against the wall more often than I'd like to be trying to think of a "nice" way of splitting up my long lines. So, Code gurus, how do you do it? Any general strategies you can inform me of?</p>
  
  <p>A particular problem I'm dealing with right now is:</p>
  
  <pre><code>self.SomeLongLongName = SomeLongLongName.SomeLongLongName(some_obj, self.user1, self.user2)
  </code></pre>
  
  <p>When I naturally try to cut this off in Python, the only half decent way available to me seems to be:</p>
  
  <pre><code>self.SomeLongLongName = SomeLongLongName.SomeLongLongName(some_obj,
                                                            self.user1
                                                            self.user2)
  </code></pre>
  
  <p>It doesn't look that bad, I guess, but it takes up three lines, which is just completely unnecessary. There must be a better way, no?</p>
  
  <p>Note: I know there are those of you who don't like 80 chars a line and have created your own limits. I understand the motivation behind this and respect it, but 80 chars is my preferred limit. Please don't take up space trying to convince me to go over to 120 or some such here.</p>