Issue 732951: bsddb.*open mode should default to 'r' rather than 'c' (original) (raw)

Issue732951

Created on 2003-05-05 22:35 by mkc, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Messages (3)
msg15875 - (view) Author: Mike Coleman (mkc) Date: 2003-05-05 22:35
In module bsddb, the second argument of the open functions (e.g., btopen) should default to 'r' rather than 'c'. Most (all?) of the other open functions, both in the various dbm-like modules and for basic I/O default this way. If this change is not made, then at least this behavior should be documented clearly. Currently it's not documented at all (as far as I can find). Cheers, Mike
msg15876 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2003-05-19 20:11
Logged In: YES user_id=12800 That certainly would make it more consistent with other *dbm open functions. I guess you'd want to change hashopen(), btopen(), and rnopen(). OTOH, this probably breaks backward compatibility for those coming from the pybsddb world. Assigning to Greg Smith to make final decision.
msg15877 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2003-05-28 07:59
Logged In: YES user_id=413 It appears that the old bsddb library also defaulted to 'r' for the *open() functions. I just committed an update to the libbsddb.tex documentation source that mentions that 'r' is the default. I didn't want to break compatibility with any existing applications. hopefully that documentation update will make it into the 2.3 release.
History
Date User Action Args
2022-04-10 16:08:35 admin set github: 38452
2003-05-05 22:35:19 mkc create