[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 
[kousu@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 rep...@bugs.python.org
http://bugs.python.org/issue19282
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com