title: 'int' object is not callable
body: <p>I'm trying to define a simply <code>Fraction</code> class </p>
  
  <p>And I'm getting this error:</p>
  
  <pre><code>python fraction.py 
  Traceback (most recent call last):
  File "fraction.py", line 20, in &lt;module&gt;
     f.numerator(2)
  TypeError: 'int' object is not callable
  </code></pre>
  
  <p>The code follows:</p>
  
  <pre><code>class Fraction(object):
      def __init__( self,  n=0, d=0 ):
         self.numerator = n
         self.denominator = d
      def get_numerator(self):
          return self.numerator
      def get_denominator(self):
           return self.denominator
  
      def numerator(self, n):
           self.numerator = n
      def denominator( self, d ):
           self.denominator = d
  
      def prints( self ):
            print "%d/%d" %(self.numerator, self.denominator)
  
  if __name__ == "__main__":
      f = Fraction()
      f.numerator(2)
      f.denominator(5)
      f.prints()
  </code></pre>
  
  <p>I thought it was because I had <code>numerator(self)</code> and <code>numerator(self, n)</code> but now I know Python doesn't have method overloading ( function overloading )  so I renamed to <code>get_numerator</code> but that's not the problems. </p>
  
  <p>What could it be?</p>