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


Groups > comp.lang.python > #75675

Re: Python Classes

From Terry Reedy <tjreedy@udel.edu>
Subject Re: Python Classes
Date 2014-08-04 05:11 -0400
References <CAGOccLnM=n4evSGYeEwURbAOpT2LKskdSsCts9ojCwwbFd39ig@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.12630.1407143513.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 8/4/2014 4:40 AM, Shubham Tomar wrote:
> 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 ?

If you have not, read and work examples based on our fine tutorial. 
Classes are intentionally the last chapter about syntax.

If you have read up to and into chapter 9, and are stuck on a particular 
section, tell us.

-- 
Terry Jan Reedy

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


Thread

Re: Python Classes Terry Reedy <tjreedy@udel.edu> - 2014-08-04 05:11 -0400

csiph-web