[Zope] Creating a class in a python script

Ronald L. Chichester complaw@hal-pc.org
Fri, 07 Dec 2001 06:24:48 -0600


If I put the code...

class myErrorClass:
  element_number = -1

... and then later...

  an_Error = myErrorClass()
  return an_Error

... I get an error message when the custom class is instantiated and/or
returned.

Can I not create classes within a python script?

Thanks in advance,

Ron