title: How to avoid explicit 'self' in Python?
body: <p>I have been learning Python by following some <a href="http://www.pygame.org/wiki/tutorials" rel="noreferrer">pygame tutorials</a>.</p>
  
  <p>Therein I found extensive use of the keyword <em>self</em>, and coming from a primarily Java background, I find that I keep forgetting to type <em>self</em>.  For example, instead of <code>self.rect.centerx</code> I would type <code>rect.centerx</code>, because, to me, <em>rect</em> is already a member variable of the class.</p>
  
  <p>The Java parallel I can think of for this situation is having to prefix all references to member variables with <em>this</em>.</p>
  
  <p>Am I stuck prefixing all member variables with <em>self</em>, or is there a way to declare them that would allow me to avoid having to do so?</p>
  
  <p>Even if what I am suggesting isn't <em>pythonic</em>, I'd still like to know if it is possible.</p>
  
  <p>I have taken a look at these related SO questions, but they don't quite answer what I am after:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/475871/python-why-use-self-in-a-class">Python - why use “self” in a class?</a>  </li>
  <li><a href="https://stackoverflow.com/questions/68282/why-do-you-need-explicitly-have-the-self-argument-into-a-python-method">Why do you need explicitly have the “self” argument into a Python method?</a></li>
  </ul>