On Sun, Sep 07, 2008 at 02:35:58PM -0700, Gregory P. Smith wrote: > On Thu, Sep 4, 2008 at 11:30 AM, Brett Cannon <brett at python.org> wrote: > > Another thing to keep in mind with the whole shelve/dbm.any argument > > is that for 3.1 there is nothing saying we can't change shelve and the > > dbm package to allow 3rd-party code to register with the dbm package > > such that bsddb can be used as needed behind the scenes. > > Exactly. That is what I think should really happen here. I will try to find a spare time to some job in the area. I am planning API like this (in terms of Python 2.x with anydbm): # dbm.something module import anydbm anydbm.register('something', whichdb_test_function) whichdb_test_function is not required - whichdb module can provide a generic test function: def generic_test(filename, module_name): module = __import__(module_name) try: module.open(filename) except: return False else: return True Oleg. -- Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4