On 6/16/2011 3:01 PM, Tim Johnson wrote:
* Terry Reedy<tjre...@udel.edu> [110616 10:50]:
The machinery in the warnings module is only for instances of subsclasses of Warning. Are the warnings from MySQLdb properly such objects? If so, what class are they?
The warnings are sent directly to stdout. No way that I know of to find out what classes they are..
The doc for any python module 'should' tell you about custom exception and warning classes. Srinivas' says in his post MySQLdb.Exception and MySQLdb.Warning, which would be sensible.
-- Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list