compare list

Ben Bush pythonnew at gmail.com
Tue Nov 15 06:16:08 EST 2005


On 11/15/05, Simon Brunning <simon.brunning at gmail.com> wrote:
>
> On 15/11/05, Shi Mu <samrobertsmith at gmail.com> wrote:
> > Yes, i am using python 2.3,
> > I have used from sets import *
> > but still report the same error:
> > > > Traceback (most recent call last):
> > > > File "<interactive input>", line 1, in ?
> > > > NameError: name 'set' is not defined
>
> I said analogous, not identical. try (untested):
>
> from sets import Set as set
>
> --
> Cheers,
> Simon B,
> simon at brunningonline.net,
> http://www.brunningonline.net/simon/blog/
> --
> http://mail.python.org/mailman/listinfo/python-list
>

an error reported:
Traceback (most recent call last):
File
"C:\Python23\lib\site-packages\Pythonwin\pywin\framework\scriptutils.py",
line 310, in RunScript
exec codeObject in __main__.__dict__
File "C:\temp\try.py", line 8, in ?
from sets import Set as set
ImportError: cannot import name Set
>>>

--
Thanks!
Ben Bush
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20051115/d8832a21/attachment.html>


More information about the Python-list mailing list