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@galleon ~]$ grep -r __exit__ /usr/lib/python3.3/dbm
Claudiu.Popa added the comment:
Working on a patch for this.
--
nosy: +Claudiu.Popa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19282
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: - needs patch
type: - enhancement
versions: -Python 3.1, Python 3.2, Python 3.3, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19282
Claudiu.Popa added the comment:
Here's a patch.
--
keywords: +patch
Added file: http://bugs.python.org/file32203/dbm.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19282
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19282
___