Message200191
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 ~]$ |
|
Date |
User |
Action |
Args |
2013-10-18 07:45:11 | kousu | set | recipients:
+ kousu |
2013-10-18 07:45:10 | kousu | set | messageid: <1382082310.98.0.0309554787542.issue19282@psf.upfronthosting.co.za> |
2013-10-18 07:45:10 | kousu | link | issue19282 messages |
2013-10-18 07:45:10 | kousu | create | |
|