"Chris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 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 ?
yeah, that 's what I am looking for, thanks all for such prompt answers! I was wondering why can't I use a format as "var = {} " to "var=list()" in set variable, and decided not to bother with it. Thanks. -- http://mail.python.org/mailman/listinfo/python-list