class Location(SQLObject):
    """ Location of each individual occurrence of a word within a document.
    """
dbWord = UnicodeCol(dbEncoding=ENCODING)
dbDocument = ForeignKey('Document')
dbLocation = IntCol()
TEST_DATA = {'one': {'doc1': [1, 2, 10], 'doc3': [6]}, 'two': {'doc1': [2, 
    13], 'doc2': [5, 6, 7]}, 'three': {'doc3': [1]}}
if __name__ == '__main__':
    db_filename = os.path.abspath(DB_NAME)
if os.path.exists(db_filename):
    os.unlink(db_filename)
Использование cPickle для сериализации большого словаря вызывает MemoryError