Re: Python-list Digest, Vol 96, Issue 4

2011-09-02 Thread Amogh M S
Two underscores??!!! OH!!! I thank thee! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 96, Issue 4

2011-09-02 Thread Amogh M S
Thank you very much And no, no, I have not been reading a book with bad font =D haha!! The problem was that I did not inherit from Object... Since I am from a JAVA background, I assumed that Python would inherit implicitly. -- http://mail.python.org/mailman/listinfo/python-list

Constructors...BIIIIG PROBLEM!

2011-09-01 Thread Amogh M S
Hey guys... I think we have a problem with my _init_ method and the constructor When I create a class and its _init_ method and try to create an object of it outside the class, Say, something like class S: def _init_(self, name=None): self.name = name s = S("MyName") It says that the co