[Tutor] TypeError with _mysql module.result.num_rows()

Jozsa Boti jboti at integrasoft.ro
Tue Sep 2 16:47:34 EDT 2003


Hi,

Why do I get a 
TypeError: function takes no arguments
error for a call to num_rows() method of a result object in _mysql module?
My usage is:

import _mysql
db = _mysql.connect()
db.query("""show table status""")
res = db.store_result()
nrws = res.num_rows()

and the error message is:

Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
TypeError: function takes no arguments
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20030902/98e32d1c/attachment.htm


More information about the Tutor mailing list