Message220185
| Author |
serhiy.storchaka |
| Recipients |
Claudiu.Popa, r.david.murray, serhiy.storchaka |
| Date |
2014年06月10日.18:31:21 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1402425082.25.0.679069092867.issue21708@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Unlike to other dbm implementations, a dumpdbm database is always opened for update, and will be created if it does not exist. We can fix this discrepancy and implement common behavior for 'r' and 'w' modes, but this will change current behavior and some deprecation period is needed.
Here is a patch (based on patch by Claudiu Popa, submitted in issue18039), which adds deprecation warnings for cases when current behavior differs from desired: invalid values for the flag parameter (will raise ValueError in future), opening non-existing database in 'r' or 'w' mode (will raise dbm.dumb.error), modifying a database opened for reading only (will raise dbm.dumb.error).
This patch needs approving by other core developer. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2014年06月10日 18:31:22 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, r.david.murray, Claudiu.Popa |
| 2014年06月10日 18:31:22 | serhiy.storchaka | set | messageid: <1402425082.25.0.679069092867.issue21708@psf.upfronthosting.co.za> |
| 2014年06月10日 18:31:22 | serhiy.storchaka | link | issue21708 messages |
| 2014年06月10日 18:31:22 | serhiy.storchaka | create |
|