Constructor class problem

Wolfgang wolfgang.schrader at siemens.com
Mon Mar 21 08:14:49 EST 2005


Hi,
I am a newbie and have to modify some python moduls.
I get the followin error:
TypeError: __init__() takes exactly 3 arguments (2 given)

Here the code snippet:
class gXconv:
    def __init__(self, pathValue):
        self.pathValue=pathValue
        self.__sections = {}
        self.__spalten = {}
        self.labelfiles=[]
etc.....

call:
    try:
        gx=gXconv.gXconv(gXconfPath)
    except gXconv.gXconvertError, msg: 
        print msg
        sys.exit(1)

Hoping for hints.....
Wolfgang



More information about the Python-list mailing list