[issue19282] dbm.open should be a context manager

Nick Coghlan report at bugs.python.org
Sun Nov 17 07:04:57 CET 2013


Nick Coghlan added the comment:

I also changed the signature of the enter/exit methods to just use PyObject * (rather than dbmobject *), since that allowed a bunch of casts to be removed and eliminated a couple of compiler warnings about type mismatches.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19282>
_______________________________________


More information about the Python-bugs-list mailing list