Antoine Pitrou <pit...@free.fr> added the comment: The plan is to replace init() with something like:
_db = None def init(): global _db db = ... # initialize database # set it to global only when it's fully ready _db = db and guess_type() with: def guess_type(): if _db is None: init() return _db.guess_type() (same for other functions) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5853> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com