[issue18039] dbm.open(..., flag="n") does not work and does not give a warning

Sashko Kopyl report at bugs.python.org
Thu May 23 02:39:58 CEST 2013


New submission from Sashko Kopyl:

I use Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:03:43) [MSC v.1600 32 bit (Intel)] on win32.

dbm.open(..., flag="n") is supposed to "Always create a new, empty database, open for reading and writing".
In Windows case it does not. So I cannot empty a dbm database when I need it.

http://docs.python.org/3/library/dbm.html#module-dbm.dumb
Here it is written:
"The optional flag argument is currently ignored; the database is always opened for update, and will be created if it does not exist."

If it is ignored, there should be at least a warning. How am I supposed to now that this is a known bug?

----------
components: Library (Lib)
messages: 189841
nosy: sonyachiko
priority: normal
severity: normal
status: open
title: dbm.open(..., flag="n") does not work and does not give a warning
type: behavior
versions: Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18039>
_______________________________________


More information about the Python-bugs-list mailing list