This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author skip.montanaro
Recipients akitada, loewis, skip.montanaro
Date 2009-04-12.23:45:07
SpamBayes Score 4.4064723e-06
Marked as misclassified No
Message-id <18914.32000.200195.170058@montanaro.dyndns.org>
In-reply-to <1239529659.3.0.960618338891.issue5736@psf.upfronthosting.co.za>
Content
Akira> Note that dbm and gdbm C API is a little different.  gdbm_nextkey
    Akira> requires key for its argument, dbm_nextkey don't.  So I had to
    Akira> use for gdbm an static variable that points to the current
    Akira> position.

I don't think this is going to fly.  A static variable is not thread-safe.
What's worse, even in a non-threaded environment you might want to iterate
over the gdbm file simultaneously from two different places.
History
Date User Action Args
2009-04-12 23:45:09skip.montanarosetrecipients: + skip.montanaro, loewis, akitada
2009-04-12 23:45:07skip.montanarolinkissue5736 messages
2009-04-12 23:45:07skip.montanarocreate