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 Claudiu.Popa
Recipients Claudiu.Popa, berker.peksag, sonyachiko
Date 2013-11-01.22:17:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Here's a patch which adds support for the `n` value of the flag. It makes the dbm consistent across implementations and it's thus more reliable.
Also, attached a script which replicates the problem for Windows (where dbm.dumb is used).

My output (after a couple of runs):

D:\Projects\snippets\DBM>py -3 u7
[b'u3', b'u2', b'u5', b'u4', b'u7', b'u6']
test.dat exists? True
test.dir exists? True
b'u3' b'there'
b'u2' b'there'
b'u5' b'there'
b'u4' b'there'
b'u7' b'there'
b'u6' b'there'
Date User Action Args
2013-11-01 22:17:00Claudiu.Popasetrecipients: + Claudiu.Popa, berker.peksag, sonyachiko
2013-11-01 22:17:00Claudiu.Popasetmessageid: <>
2013-11-01 22:17:00Claudiu.Popalinkissue18039 messages
2013-11-01 22:17:00Claudiu.Popacreate