compare list

Simon Brunning simon.brunning at gmail.com
Tue Nov 15 06:28:30 EST 2005


On 15/11/05, Ben Bush <pythonnew at gmail.com> wrote:
> 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
> >>>

Works for me. You don't have a sets module of your own, do you? Try
this, and report back what you see:

import sets
print sets.__file__
print dir(sets)

--
Cheers,
Simon B,
simon at brunningonline.net,
http://www.brunningonline.net/simon/blog/



More information about the Python-list mailing list