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

Reply via email to