def __setitem__(self, key, item):
        """
        Method to put items into the database file.
        """
        item = marshal.dumps(item)
        self.dbfile[key] = item

        Method to put items into the database file.
        
recipes/Python/577003_Extending_anydbm_with_marshal/recipe-577003.py