Here you go,

myList = list(set(listA+listB))

-brian

-------- Original Message --------
Subject: [Maya-Python] list booleans
From: sberger <[email protected]>
Date: Thu, June 11, 2009 2:38 pm
To: python_inside_maya <[email protected]>


Hi guys, i would to know if there is already function in python to
perform list booleans.

For example, given those list
listA = [1,2,3]
listB = [2,3,4,5]

performing these operation would give the result
listB-listA would give [4,5]

listA+listB would give [1,2,3,4,5]

etc..

thanks


--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to