[Python-3000] Immutable bytes type and dbm modules

Jason Orendorff jason.orendorff at gmail.com
Thu Aug 9 17:42:46 CEST 2007


On 8/7/07, "Martin v. Löwis" <martin at v.loewis.de> wrote:
> My concern is that people need to access existing databases. It's
> all fine that the code accessing them breaks, and that they have
> to actively port to Py3k. However, telling them that they have to
> represent the keys in their dbm disk files in a different manner
> might cause a revolt...

Too true.  Offhand, why not provide hooks for serializing and
deserializing keys?  The same for values, too.  People porting to
py3k could use those.  Besides, this thread makes it sound like
people usually write their own wrapper classes whenever they
use *dbm.  Hooks would help with that, or even eliminate the
need altogether.

-j


More information about the Python-3000 mailing list