469,282 Members | 1,704 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,282 developers. It's quick & easy.

Weird Python 2.3 subclassing thing with _mysql and MySQLdb

(cross posting to python list in case someone there can explain this bizarre
behaviour...)

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

8236

....BWAGGGHH?!

Chris

--
Simplistix - Content Management, Zope & Python Consulting
- http://www.simplistix.co.uk
Jul 18 '05 #1
0 823

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Alec Wysoker | last post: by
reply views Thread by google account | last post: by
13 posts views Thread by Aquarius | last post: by
1 post views Thread by Steve | last post: by
2 posts views Thread by simen.haugen | last post: by
1 post views Thread by Steve Ametjan | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.