On Wed, 1 Nov 2006, Rajesh R wrote:
> I am new to Python and i have a very basic question about writing > classes. Lets say i have the following code : > [code cut] Hi Rajesh, Take a look at a Python class tutorial: http://www.diveintopython.org/object_oriented_framework/defining_classes.html The syntax you're writing is almost right, but there are some specifics that you're missing. In Python, methods need to take an explicit 'self' parameter. Good luck! _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
