Be more careful about which attributes and keys get wrapped
Only wrap things that are callable, so that, e.g., properties (like "db.name") will continue to work. Also, __getitem__ should fetch item from self.conn, and __getattr__ should fetch attr from self.conn, and they shouldn't be mixed up.
Showing
Please
register
or
sign in
to comment