On 1/5/07, Stef Mientki <[EMAIL PROTECTED]> wrote: if I undestand correctly this is what you want
>>> class pin3: ... def __init__(self,name): ... self.Name = name ... def __str__(self): ... return self.Name ... >>> pin3() Traceback (most recent call last): File "<stdin>", line 1, in ? TypeError: __init__() takes exactly 2 arguments (1 given) >>> pin3('aaa') <__main__.pin3 instance at 0xb7dc948c> >>> print pin3('aaa') aaa -- http://mail.python.org/mailman/listinfo/python-list