On Feb 12, 3:45 pm, "Sun" <[EMAIL PROTECTED]> wrote: > Maybe this is a very primative question, but I just get a bit confused about > 'set' and 'Set' module in python. > > I understand 'set' is a build in type in python after 2.4(or 2.3) and Set a > seperate module, anyhow, I gonna use build in 'set'. > > then the question is how can I declare a empty set variable as a 'var= []' > do to a list variable?
>>> test = set() >>> test set([]) >>> type(test) <type 'set'> You looking for that ? -- http://mail.python.org/mailman/listinfo/python-list