[issue22964] dbm.open(..., "x")

2019-08-21 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Agree with Batuhan. There are three dbm implementations in the stdlib: dumb, 
ndbm and gnu. It may be possible to implement the "x" flag in the former two, 
but gdbm_open() does not support it.

Since by default the implementation is chosen automatically in dbm.open(), I do 
not think it is practically to implement a flag which do not work with all 
implementations.

--
nosy: +serhiy.storchaka
resolution:  -> rejected
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22964] dbm.open(..., "x")

2019-05-12 Thread Antony Lee


Change by Antony Lee :


--
nosy:  -Antony.Lee

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22964] dbm.open(..., "x")

2019-05-12 Thread Batuhan


Batuhan  added the comment:

Python directly passes flags to gdbm (or whatever the dbm interface is). 

gdbm_open((char *)file, 0, flags, mode, NULL)) # _gdbmmodule.c:76

I dont think it is good idea to wrap gdbm for just a flag.

--
nosy: +BTaskaya

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22964] dbm.open(..., x)

2015-03-09 Thread Claudiu Popa

Changes by Claudiu Popa pcmantic...@gmail.com:


--
nosy: +Claudiu.Popa

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22964
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22964] dbm.open(..., x)

2014-11-28 Thread Antony Lee

New submission from Antony Lee:

It would be nice if dbm.open() supported the x flag that open() now supports 
(create a new db, failing if it already exists).

--
components: Library (Lib)
messages: 231835
nosy: Antony.Lee
priority: normal
severity: normal
status: open
title: dbm.open(..., x)
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22964
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22964] dbm.open(..., x)

2014-11-28 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy: +berker.peksag
stage:  - needs patch
type:  - enhancement
versions: +Python 3.5 -Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22964
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com