Two minor questions on Class

Shashank Singh shashank.sunny.singh at gmail.com
Fri Jul 30 13:36:28 EDT 2010


On Fri, Jul 30, 2010 at 10:53 PM, joy99 <subhakolkata1234 at gmail.com> wrote:

> class Person(object):
>        def _init_(self,name,age):
>                self.name=name
>                self.age=age
>
> constructor has double underscores (both as prefix and suffix) __init__

-- 
Regards
Shashank Singh
Senior Undergraduate, Department of Computer Science and Engineering
Indian Institute of Technology Bombay
shashank.sunny.singh at gmail.com
http://www.cse.iitb.ac.in/~shashanksingh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100730/ad0c5f54/attachment-0001.html>


More information about the Python-list mailing list