#NEWLINE# def _set_list( self , length , items ) : #NEWLINE# #INDENT# 'Create a new collection, and destroy the contents of the previous pointer.' #NEWLINE# prev_ptr = self . ptr #NEWLINE# srid = self . srid #NEWLINE# self . ptr = self . _create_collection ( length , items ) #NEWLINE# if srid : #NEWLINE# #INDENT# self . srid = srid #NEWLINE# #UNINDENT# capi . destroy_geom ( prev_ptr )