(any)dbm module lacks a context manager

P

python.list

I don't know if this has been remedied in a more recent version than
I've got on my box (Debian Stable), but it seems like it should work
out of the box:

Python 3.1.3 (r313:86834, Nov 28 2010, 10:01:07)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information..... d["hello"] = "world"
....
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: '_dbm.dbm' object has no attribute '__exit__'


I'm guessing it's an easy fix? (or even already fixed)

-tkc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top