If I create multiple classes in python to deal with different aspects of a program and each of those classes needs to access mysql what is the best way of handling connections/cursors?
1) Each class opens a connection and creates a cursor. 2) The toplevel opens a connection which is passed to the class which then creates a cursor. 3) The toplevel opens a connection and creates a cursor which is passed to the class. -- "No one can make you feel inferior without your consent." -- Eleanor Roosevelt Rick Pasotto [EMAIL PROTECTED] http://www.niof.net --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php