Message299790
| Author |
Stephen Larroque |
| Recipients |
Stephen Larroque |
| Date |
2017年08月05日.16:26:58 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1501950419.2.0.502891257534.issue31125@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年08月05日 16:26:59 | Stephen Larroque | set | recipients:
+ Stephen Larroque |
| 2017年08月05日 16:26:59 | Stephen Larroque | set | messageid: <1501950419.2.0.502891257534.issue31125@psf.upfronthosting.co.za> |
| 2017年08月05日 16:26:59 | Stephen Larroque | link | issue31125 messages |
| 2017年08月05日 16:26:58 | Stephen Larroque | create |
|