when we work on the oops in the python then we have to pass the first
parameter as a self then the value of the other parameters .
for example:
class Student:
def __init__(self,name):
self.name=name
print 'The name is',self.name
a=student('sudhanshu')
a is an object of the student class
so __init__ is a constructor in which we do not need to call the function
separately .
Now If I placed the name of the constructor rather than the __init__
__baba___ so will it also work as a constructor or constructor has specified
already if yes then give me list of them
ragards
sudhanshu
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor