Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class db(object):
- __metaclass__ = Lazy
- @classmethod
- def instantiate(cls):
- return db_connection()
- def func1():
- db.execute('SELECT * FROM things')
- def func2():
- db.execute('SELECT * FROM other_things')
Add Comment
Please, Sign In to add comment