New submission from Stephen Larroque:

This is a followup of issue 23174.

When using `[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.

components: IO
messages: 299790
nosy: Stephen Larroque
priority: normal
severity: normal
status: open
title: of temporary file fails with error "anydbm.error: db type 
could not be determined"
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7

Python tracker <>
Python-bugs-list mailing list

Reply via email to