## #python - Wed 9 May 2007 between 00:00 and 00:07

### NY Lost Funds

 lvmc set2 = 1, 44, 22, 333i need remove the repetion "1"if i do set1 - set2the repetion is not removedi'm working with strings TFKyle lvmc: ok, what do you want, to have 1 in set1 but not set2, or just a set/list with all the elements from set1/set2 in but with 1 only in once? lvmc i need all elements in set1 - repetion elements in set2 qebab use lists lvmc a - bi can't make it with lists TFKyle ok, then set1 -= set2 would work qebab then do list3 = list(set(list1 + list2)) lvmc let me try qebab >>> list(set([1, 2, 3, 4, 5] + [1, 44, 22, 333]))[1, 2, 3, 4, 5, 44, 333, 22]that is what you want? lvmc yes TFKyle ah, then you could've just used set1 + set2just you said you didn't want to do that earlier when I asked qebab you can add sets? TFKyle yep qebab >>> a = set([1, 2, 3, 4, 5]) + set([1, 2, 7, 9])TypeError: unsupported operand type(s) for +: 'set' and 'set' TFKyle hrm, indeedthought you could qebab I don't know why I knew that AaronBrady hi TFKyle wonder why you can't, seems logical to me to be able to lvmc qebab,self.alnfaltas = list(set(self.alnfile - self.alnpresentes)) AaronBrady ah home. lvmc eError: unsupported operand type(s) for -: 'list' and 'set' TFKyle lvmc: you can't - list, just + AaronBrady got a question. will just post. TFKyle lvmc: use a set if you need to -or sets rather lvmc TFKyle, look the code... qebab lvmc: then one of your parameters is a set, not a list corden just how to download Qt? Im using ubuntu 6.10 and 7.04. tnx AaronBrady can we get some classes in the standard library? certain functions are nice to override.