Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

TypeError: unsupported operand type(s)

Help
2010-02-07
2013-04-26
  • Charles Kiss
    Charles Kiss
    2010-02-07

    For the following function, Is the following error really supposed to be happening??

    def A(t,n):
      
        r=a
       
        A=-k*t/(r**n) + k/((b**n)*t)  # Equation (3)
       
        return A

    TypeError: unsupported operand type(s) for ** or pow(): 'function' and 'int'

    It doesn't happen in emacs. 

    Very frustrating that every editor has very different bugs!  Is there a way to fix this,  I tried different imports, nothing seems to work.

     
  • Charles Kiss
    Charles Kiss
    2010-02-07

    Ignore the above post, I can't delete it.

    Sorry I acted out.  Everything is fine. It was all my fault, not the editor's.