Class problem

Rene Pijlman reply.in.the.newsgroup at my.address.is.invalid
Mon Dec 8 12:22:22 EST 2003


Daniel Pryde:
>when I import it and try to make an instance of it, it returns with 
>the error that 'module' is not callable.

My guess is you should do:

  import spam
  eggs = spam.spam()

instead of:

  import spam
  eggs = spam()

If not, please post the source code and exact text of the error message.

-- 
René Pijlman




More information about the Python-list mailing list