Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.109.133.86.MISMATCH!newsfeed.xs4all.nl!newsfeed3.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.071 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'sub': 0.09; 'uses.': 0.09; 'cc:addr:python-list': 0.11; 'mean,': 0.16; 'subject:class': 0.16; 'to:addr:web.de': 0.16; 'variables,': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'variable': 0.18; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; '>': 0.26; 'class.': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'extending': 0.31; 'location,': 0.31; 'sep': 0.31; 'subject:skip:i 10': 0.31; 'class': 0.32; 'lists': 0.32; 'url:python': 0.33; 'classes': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'url:listinfo': 0.36; 'url:org': 0.36; 'should': 0.36; 'expected': 0.38; 'called': 0.40; 'url:mail': 0.40; 'then,': 0.60; 'here:': 0.62; 'back': 0.62; 'email addr:gmail.com': 0.63; 'show': 0.63; '30,': 0.65; '9:02': 0.84; 'otten': 0.84; 'joel': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=QoT64aog+oaOfqnwz+xfO+YA/0DTtYBwA7KuS6TIPMk=; b=C2ydcAqRSe8BsWi1eiwz9Py4X/Q96zeCKY6OEQN9cuBWK/iPSibwuG0r845MR+SOvo 1KorrKNAW263vbzuAVRXf/FdlBF6kKUQLYni9uz+6QdMvtNEf3CK6GYqseMTlxRSmExU mMmpoRBdPgZKfCOHv65wXpYtTysbxjhp0uD3d6PNRriUSg/f9MDGC1MqkzeH6EcDR6Vu uNZXapO1g5ChxrkaX4eULsjTtnOYlViG0rKG72RxqMxE9+IlU11HrGSegI6KAeLJOslP ScZMtGq5oVLm1mzq85Yy+jvXMWV7g0cScx5e3PRRAVL4hTNRtEberR5Bcr+i9IcfIDJj +Dug== MIME-Version: 1.0 X-Received: by 10.58.168.205 with SMTP id zy13mr22508422veb.19.1380547310282; Mon, 30 Sep 2013 06:21:50 -0700 (PDT) In-Reply-To: References: <6e338858-b9e6-4745-9959-35d7c0c7724e@googlegroups.com> <02724244-c924-4cf0-9656-71ade6e435c2@googlegroups.com> Date: Mon, 30 Sep 2013 09:21:50 -0400 Subject: Re: class implementation From: Joel Goldstick To: Peter Otten <__peter__@web.de> Content-Type: multipart/alternative; boundary=047d7b6dc22406744204e799b83f Cc: "python-list@python.org" 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: 62 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1380547319 news.xs4all.nl 15916 [2001:888:2000:d::a6]:37165 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:55073 --047d7b6dc22406744204e799b83f Content-Type: text/plain; charset=UTF-8 On Mon, Sep 30, 2013 at 9:02 AM, Peter Otten <__peter__@web.de> wrote: > markotaht@gmail.com wrote: > > > under variables, i mean, the int's and lists and strings and floats that > > the parent class uses. IF in parent class there is variable called > > location, then can i use the same variable in my sub class. > > Please show us some code. Thankyou. > > -- > https://mail.python.org/mailman/listinfo/python-list > You should start by learning about classes -- perhaps here: http://docs.python.org/2/tutorial/classes.html#classes Then, try writing some code using classes or extending a class. Then come back when something doesn't work as expected -- Joel Goldstick http://joelgoldstick.com --047d7b6dc22406744204e799b83f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Mon, Sep 30, 2013 at 9:02 AM, Peter Otten <= __peter__@web.de&= gt; wrote:
markotaht@gmail.com wrote:

> under variables, i mean, the int's and lists and strings and float= s that
> the parent class uses. IF in parent class there is variable called
> location, then can i use the same variable in my sub class.

Please show us some code. Thankyou.

--
https://mail.python.org/mailman/listinfo/python-list

You s= hould start by learning about classes -- perhaps here:=C2=A0 http://docs.python.org= /2/tutorial/classes.html#classes

Then, try writing some code using clas= ses or extending a class.=C2=A0 Then come back when something doesn't w= ork as expected

--
--047d7b6dc22406744204e799b83f--