undesired traceback
Mike Fletcher
mfletch at tpresence.com
Sun Aug 13 00:58:45 EDT 2000
class Foo:
def __init__( self ):
pass
Constructors (and all methods) get the instance as their first arguments,
Python is saying "hey, you passed an argument, but your method doesn't ask
for any arguments".
HTH,
Mike
-----Original Message-----
From: etoffi at softhome.net [mailto:etoffi at softhome.net]
Sent: Sunday, August 13, 2000 12:46 AM
To: python-list at python.org
Subject: undesired traceback
why is this code giving me a traceback?
(TypeError: No arguments expected)
class Foo:
def __init__():
pass
f = Foo()
--
etoffi
--
http://www.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list