how saving/retreiving python code from DB ?
Alex Martelli
aleaxit at yahoo.com
Wed Jul 18 10:07:12 EDT 2001
"vincent delft" <vdelft at itmasters.com> wrote in message
news:3B559274.6B66A372 at yahoo.com...
> I'm looking for a module that allow us to store/import python code into
> DB (bsddb for example) instead of a file.
>
> like "import" retreives coding in flat files, is there a way to retreive
> coding for a DB ?
You can write your own version of __import__ and set it as the
thus-named attribute of the __builtin__ module -- statements
import and from will thereafter use your version rather than
the built-in kind. Is this what you want...?
Alex
More information about the Python-list
mailing list