By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,548 Members | 1,396 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,548 IT Pros & Developers. It's quick & easy.

Weird Python 2.3 subclassing thing with _mysql and MySQLdb

P: n/a
(cross posting to python list in case someone there can explain this bizarre

Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
import _mysql
....define kwargs...
c = _mysql.connection(**kwargs)
c <_mysql.connection open to 'localhost' at 7b8858> c.server_capabilities Traceback (most recent call last):
File "<stdin>", line 1, in ?
AttributeError: server_capabilities

....hmmm, okay, so no server_capabilties attribute...
class test(_mysql.connection): pass .... c = test(**kwargs)
c <_mysql.connection open to 'localhost' at 82c2a0> c.server_capabilities




Simplistix - Content Management, Zope & Python Consulting
Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.