This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients djc, georg.brandl, pitrou
Date 2009-04-27.14:04:57
SpamBayes Score 0.0014661946
Marked as misclassified No
Message-id <1240841098.42.0.691777059375.issue5853@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2009-04-27 14:04:58pitrousetrecipients: + pitrou, georg.brandl, djc
2009-04-27 14:04:58pitrousetmessageid: <1240841098.42.0.691777059375.issue5853@psf.upfronthosting.co.za>
2009-04-27 14:04:57pitroulinkissue5853 messages
2009-04-27 14:04:57pitroucreate