def insert( self, record, recnum=None ):
		'Insert one record (or append if no rec number)'
		if recnum == None:
			for i, value in enumerate( record ):
				self.data[ self.flist[i] ].append( value )
		else:
			for i, value in enumerate( record ):
				self.data[ self.flist[i] ].insert( value, recnum )
		self.rowcount += 1
Insert one record (or append if no rec number)
recipes/Python/577697_Simple_numeric_database/recipe-577697.py