[issue5736] Add the iterator protocol to dbm modules

"Martin v. Löwis" <report@bugs.python.org> at psf.upfronthosting.co.za "Martin v. Löwis" <report@bugs.python.org> at psf.upfronthosting.co.za
Mon Apr 13 14:56:09 CEST 2009


Martin v. Löwis <martin at v.loewis.de> added the comment:

I agree with Skip that using a static variable is not appropriate. The
proper solution probably would be to define a separate gdbm_iter object
which always preserves the last key returned.

----------

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


More information about the Python-bugs-list mailing list