[issue19282] dbm is not a context manager
Nick Guenther
report at bugs.python.org
Fri Oct 18 09:45:10 CEST 2013
New submission from Nick Guenther:
This code doesn't work. I think it should.
import dbm
with dbm.open("what is box.db", "c") as db:
db["Bpoind"] = Boing
Indeed, there is nothing supporting PEP 343 for dbm on my system:
[kousu at galleon ~]$ grep -r __exit__ /usr/lib/python3.3/dbm
[kousu at galleon ~]$
----------
components: Library (Lib)
messages: 200191
nosy: kousu
priority: normal
severity: normal
status: open
title: dbm is not a context manager
versions: Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19282>
_______________________________________
More information about the Python-bugs-list
mailing list