This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2017年08月05日 16:26 by Stephen Larroque, last changed 2022年04月11日 14:58 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg299790 - (view) | Author: Stephen Larroque (Stephen Larroque) | Date: 2017年08月05日 16:26 | |
This is a followup of issue 23174. When using `shelve.open(tempfile.mkstemp()[1])`, the shelve (or anydbm or dumbdbm) fail with "anydbm.error: db type could not be determined". Instead, the module could detect the file is empty and use it as if it were not existing before ('c' or 'n' flag). For the moment, there is no way around except creating the temporary file and then delete it. |
|||
| msg299797 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2017年08月06日 13:01 | |
No, it should not. A DBM is not necessarily a single file. What you should be doing is creating a temporary *directory*, and opening your DB inside that. |
|||
| msg299798 - (view) | Author: R. David Murray (r.david.murray) * (Python committer) | Date: 2017年08月06日 13:02 | |
By the way, if you want to open a doc issue with a suggestion of how to clarify this in the docs, that would be welcome. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:58:49 | admin | set | github: 75308 |
| 2017年08月06日 13:02:58 | r.david.murray | set | messages: + msg299798 |
| 2017年08月06日 13:01:52 | r.david.murray | set | status: open -> closed components: + Library (Lib), - IO nosy: + r.david.murray messages: + msg299797 resolution: rejected stage: resolved |
| 2017年08月05日 16:26:59 | Stephen Larroque | create | |