• Tim Peters's avatar
    There's a persistent rumor on the spambayes mailing list that dumbdbm · 7dfd5701
    Tim Peters yazdı
    databases are associated with corruption problems, so I studied this code
    carefully and ran some brutal stress tests.  I didn't find any bugs,
    although it's unclear whether this code *intends* that __setitem__ can
    leave the directory file out of synch with the data file (so
    if a dumbdbm isn't properly closed, and the value of an existing key
    was ever replaced, corruption is almost certain, where "corruption"
    means the directory file is out of synch with the data file).
    
    Added many comments and generally modernized the code.  Examples of the
    latter:  we have better ways of reading a whole file line-by-line now;
    eval() now tolerates a trailing newline; the %r format code can be used
    to avoid explicit repr/backtick calls; and the code often broke tuples
    into their components when it was clearer and faster to just leave them
    as tuples.
    7dfd5701
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...