On 11/15/05, Simon Brunning <[EMAIL PROTECTED]> wrote:
On 15/11/05, Shi Mu <[EMAIL PROTECTED]> 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,
[EMAIL PROTECTED],
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
 
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to