Re: Observations about dbm

Guido van Rossum (Guido.van.Rossum@cwi.nl)
Mon, 10 Aug 1992 23:50:13 +0200

>This one is for Jack: I was using the dbm module and am a little
>disappointed that it only takes strings as data (although I shouldn't look
>a gift horse in the mouth :-). I was wondering how much effort it would
>be to support all data types that are supported by the module 'marshal'?

Actually, this was done on purpose. With the current set-up you can
share databases between C programs and Python code. If you want to
store arbitrary Python values in a database, just place them between
`reverse quotes` when putting them in and pass them through eval()
after taking them out.

--Guido van Rossum, CWI, Amsterdam <guido@cwi.nl>
"Eric, being such a happy cat, was a piece of cake."