[issue19282] dbm is not a context manager

2013-10-18 Thread Nick Guenther
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

[issue19282] dbm is not a context manager

2013-10-18 Thread Claudiu.Popa
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 ___ ___

[issue19282] dbm is not a context manager

2013-10-18 Thread Serhiy Storchaka
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

[issue19282] dbm is not a context manager

2013-10-18 Thread Claudiu.Popa
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 ___

[issue19282] dbm is not a context manager

2013-10-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19282 ___