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


Groups > comp.lang.python > #13240

Re: Invoke a superclass method from a subclass constructor

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <SRS0=DNIc=36=ieee.org=davea@srs.perfora.net>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'instance': 0.05; 'differently.': 0.07; 'created,': 0.09; 'subject:method': 0.09; 'executed.': 0.16; 'phrasing': 0.16; 'received:192.168.1.104': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.16; 'language,': 0.17; 'cc:2**0': 0.22; 'header:In-Reply-To:1': 0.22; 'pm,': 0.24; 'suspect': 0.24; 'code': 0.25; 'bit': 0.28; 'cc:addr:python.org': 0.30; 'example': 0.30; 'confused': 0.30; 'class': 0.30; 'does': 0.32; 'header:User-Agent:1': 0.34; 'things': 0.34; 'all.': 0.34; 'something': 0.37; 'could': 0.38; 'think': 0.38; 'should': 0.38; 'subject:: ': 0.39; 'received:192': 0.39; 'session': 0.39; 'subject:from': 0.40; 'show': 0.67; 'header:Reply-To:1': 0.71; 'reply-to:no real name:2**0': 0.71; '02:59': 0.84
Date Tue, 13 Sep 2011 15:31:08 -0400
From Dave Angel <davea@ieee.org>
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13
MIME-Version 1.0
To Kayode Odeyemi <dreyemi@gmail.com>
Subject Re: Invoke a superclass method from a subclass constructor
References <CAPbrmCtnuAGk=T=hS43GH5g_Tx2oAGbQJ+AODrVfc5jxyQk7RA@mail.gmail.com> <4E6C9044.5060302@jollybox.de> <CAPbrmCua4wZFJEyiTJHe5Wo_+ho_Q=F-GRsYvSs_FqEdNTP_Xw@mail.gmail.com> <0604E20B5F6F2F4784C9C8C71C5DD4DD2F16B197E2@EMARC112VS01.exchad.jpmchase.net> <0604E20B5F6F2F4784C9C8C71C5DD4DD2F16B1987A@EMARC112VS01.exchad.jpmchase.net> <CAPbrmCtEemgxBC1RRjFSmuePsp8AkO8FTO95orJ_T3MMB=j3Og@mail.gmail.com>
In-Reply-To <CAPbrmCtEemgxBC1RRjFSmuePsp8AkO8FTO95orJ_T3MMB=j3Og@mail.gmail.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:W9A5L8MxGCK/sR/T6xxZviCGxItFiuduILCExyZ+Apo VK4pxUa1fAKRjHy7F/5Aqm3esyphHLIO7bbwJDcSl6JmiXmAje EkcDz1V8inWJU0MskmJbMzGfognhjWT2BhZqI+KJ3KrNfAwi3x JrarxA4+4wocfaqRtX5MXUJ0h1y/xoy/59VK1yVxfJENVMreDu sq7iviQvteLlbFA0f6tAObBuuYCCvpsqPdkURmxHELes70vuQY w4Z/8huylwahELvn8FV0f8gTzC2f2CSBKys580yP3seRAW9/Rq CeuHuSxktdbJRuB0JWIF1AoiXX+ceKilXMPMqvTLFWEl8FG+g= =
Cc "python-list@python.org" <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To davea@ieee.org
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1082.1315942285.27778.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1315942285 news.xs4all.nl 2521 [2001:888:2000:d::a6]:51945
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:13240

Show key headers only | View raw


On 01/-10/-28163 02:59 PM, Kayode Odeyemi wrote:
>
> When an instance of a class is created, all codes within that instance block
> should be executed. That's my understanding of OOP.
>
I don't understand this phrasing at all.   Could you show a specific 
example of something that does not execute code you think should be 
executed?  I suspect you're just confused by things the interactive 
session is printing out, which are not part of the language, and work a 
bit differently.

DaveA

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


Thread

Re: Invoke a superclass method from a subclass constructor Dave Angel <davea@ieee.org> - 2011-09-13 15:31 -0400

csiph-web