Menu

#252 AttributeErrors in Connection objects-refactoring problem

MySQLdb-1.3
open
MySQLdb (285)
5
2012-09-19
2008-04-04
No

Probably caused by (unfinished?) refactoring the interface for the Connection object is broken.
In connections.py since revision 530 the Connection class does not inherit from _mysql.connection anymore but makes it a private attribute "_db" which is a good thing i think.

However methods/attributes formerly present in Connection objects by inheritence are not available anymore and don't seem to be exposed at other places.

For example connection.ping() does not work and raises an AttributeError.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.