[Python-Dev] 2.3.1 is (almost) a go
"Martin v. Löwis"
martin at v.loewis.de
Sat Sep 27 17:17:46 EDT 2003
Gregory P. Smith wrote:
> It is worth noting that using a DBEnv in this manner will create a bunch
> of auxilary DBEnv related files on the disk. That has the potential of
> confusing people who expect only the database file. It also means that
> separate unrelated databases cannot exist in the same directory without
> being part of the same DBEnv (which BerkeleyDB multiprocess access should
> handle just fine; but it might not be what people expect).
I see. I could accept that it is confusing; would it also be backwards
compatible (i.e. would BerkeleyDB create those files on demand, and
would old Python installation still be able to read the database even
if those files where around)?
> An alternative would be to say that applications that want to use bsddb
> with threading need to use the *real* BerkeleyDB API rather than the
> ancient compatibility interface. (it'd be easy to check that bsddb
> doesn't get used by multiple threads, raising an exception if it does)
But is it also easy to detect that multiple applications try to use
the same database?
More information about the Python-Dev