Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75671

Python Classes

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 <tomarshubham24@gmail.com>
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 <tomarshubham24@gmail.com>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.12627.1407141661.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Python Classes Shubham Tomar <tomarshubham24@gmail.com> - 2014-08-04 14:10 +0530
  Re: Python Classes John Gordon <gordon@panix.com> - 2014-08-04 22:44 +0000
    Re: Python Classes Terry Reedy <tjreedy@udel.edu> - 2014-08-04 19:26 -0400
    Re: Python Classes "Neil D. Cerutti" <neilc@norwich.edu> - 2014-08-05 11:37 -0400
    Re: Python Classes Chris Angelico <rosuav@gmail.com> - 2014-08-06 02:08 +1000

csiph-web