def delete(self, arguments): 'Get the delete list.' deleteList = [] enumeratorSet = set(euclidean.getEnumeratorKeysAlwaysList(self.listObject, arguments)) for elementIndex, element in enumerate(self.listObject): if elementIndex not in enumeratorSet: deleteList.append(element) return deleteList
def delete(self, arguments): "Get the delete string." deleteString = "" enumeratorSet = set(euclidean.getEnumeratorKeysAlwaysList(self.stringObject, arguments)) for characterIndex, character in enumerate(self.stringObject): if characterIndex not in enumeratorSet: deleteString += character return deleteString
def delete(self, arguments): 'Get the delete string.' deleteString = '' enumeratorSet = set(euclidean.getEnumeratorKeysAlwaysList(self.stringObject, arguments)) for characterIndex, character in enumerate(self.stringObject): if characterIndex not in enumeratorSet: deleteString += character return deleteString
def delete(self, arguments): 'Get the delete dictionary.' if arguments.__class__ != list: del self.dictionaryObject[arguments] return self.dictionaryObject if len(arguments) == 0: self.dictionaryObject.clear() return self.dictionaryObject if len(arguments) == 1: del self.dictionaryObject[arguments[0]] return self.dictionaryObject for enumeratorKey in euclidean.getEnumeratorKeysAlwaysList(self.dictionaryObject, arguments): del self.dictionaryObject[enumeratorKey] return self.dictionaryObject
def delete(self, arguments): 'Get the delete dictionary.' if arguments.__class__ != list: del self.dictionaryObject[arguments] return self.dictionaryObject if len(arguments) == 0: self.dictionaryObject.clear() return self.dictionaryObject if len(arguments) == 1: del self.dictionaryObject[arguments[0]] return self.dictionaryObject for enumeratorKey in euclidean.getEnumeratorKeysAlwaysList( self.dictionaryObject, arguments): del self.dictionaryObject[enumeratorKey] return self.dictionaryObject