NameError function not found
tack at urandom.ca
Fri May 29 22:07:12 CEST 2009
On Fri, 2009-05-29 at 15:13 -0400, Cameron Pulsford wrote:
> def _determinant(m):
> return m * m - m * m
Given that this has no self argument, I'm assuming this is not a class
> def cofactor(self):
> """Returns the cofactor of a matrix."""
Given that this does, I assume this _is_ a class method.
So are you putting _determinant() inside the class? If so, you should
either make it method, and invoke it as self._determinant(), or bring it
outside the class into the global scope, in which case your code should
More information about the Python-list