Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.007 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'syntax': 0.04; 'subject:Python': 0.06; 'purpose.': 0.07; 'classes.': 0.09; 'python': 0.11; 're-usable': 0.16; 'subject:Classes': 0.16; 'language': 0.16; 'programming': 0.22; 'define': 0.26; 'idea': 0.28; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'serve': 0.31; 'classes': 0.35; 'received:google.com': 0.35; 'thanks': 0.36; 'hi,': 0.36; 'skip:& 10': 0.38; 'to:addr:python-list': 0.38; 'explain': 0.39; 'skip:& 20': 0.39; 'to:addr:python.org': 0.39; 'first': 0.61 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=P9U2fW9Xz525MJY2f5d1tbsFkQpYkD1OD+Gvv7GEr/U=; b=Jk2DiLJppTQYOa35QqlFpTNVXh/WcZwQUuwvEzHzI8sEksMQ1lecDdb5Fqr3ft1t0h teii7kpHie88KzPdsicZLZ8rIhSYqzJ+5qYynlT99+5xznPLoJbJ3jH26lnTnFUmpmpE HyuIOxLDZp5RjE9nYuBhWPvUzzHVMIKRege275CtRvRRzHqkfJaPtdOvdZplfSQ/trbt qYgPnFmrQRaRPQNpkCU9/pL0l1HPH4TjZh7a3nvvz/zO2WNHHKcArz9+c8let0hh2XSl Ib5CR/mJa6j6YDq1FfMgnp+kZERrEbPjJb/7Ol/g2amzZ1lxjivnn59KV8QAOztpGh69 +npg== MIME-Version: 1.0 X-Received: by 10.60.45.234 with SMTP id q10mr30119328oem.25.1407141651460; Mon, 04 Aug 2014 01:40:51 -0700 (PDT) Date: Mon, 4 Aug 2014 14:10:51 +0530 Subject: Python Classes From: Shubham Tomar To: python-list@python.org Content-Type: multipart/alternative; boundary=001a11c21b0648b66404ffc9b2f6 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 28 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1407141661 news.xs4all.nl 2838 [2001:888:2000:d::a6]:50321 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:75671 --001a11c21b0648b66404ffc9b2f6 Content-Type: text/plain; charset=UTF-8 Hi, Python is the first programming language that I'm learning. I'm confused by the idea of classes and intimidated by syntax defining classes. I understand that you define classes to have re-usable methods and procedures, but, don't functions serve the same purpose. Can someone please explain the idea of classes and what *things *like "__init__", "Object" and "self" mean ? Thanks --001a11c21b0648b66404ffc9b2f6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

Python is the first programming lan= guage that I'm learning.=C2=A0
I'm confused by the idea of class= es and intimidated by syntax defining classes. I understand that you define= classes to have re-usable methods and procedures, but, don't functions= serve the same purpose.=C2=A0
Can someone please explain the idea of classes and what things like = "__init__", "Object" and "self" mean ?
<= div>
Thanks

--001a11c21b0648b66404ffc9b2f6--