[issue5736] Add the iterator protocol to dbm modules

Akira Kitada report at bugs.python.org
Mon Apr 13 15:43:42 CEST 2009


Akira Kitada <akitada at gmail.com> added the comment:

Yes, using a static variable there is wrong and
actually I'm now working on "dbm_iterobject" just as Martin suggested.

dbm iterator should behave just like one in dict.
I think I can use Objects/dictobject.c as a good example for this.

Attached is minimal tests for dbm iterator.

----------
Added file: http://bugs.python.org/file13682/test_issue5736.diff

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


More information about the Python-bugs-list mailing list