Path: csiph.com!usenet.pasdenom.info!news.albasani.net!rt.uk.eu.org!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.039 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'c++,': 0.07; 'subject: [': 0.09; 'cc:addr:python-list': 0.11; 'itself.': 0.14; '*function': 0.16; '*within*': 0.16; 'combinations': 0.16; 'enough.': 0.16; 'function"': 0.16; 'subject:"]': 0.16; 'write,': 0.16; 'input': 0.22; 'cc:addr:python.org': 0.22; 'subject:problem': 0.24; 'fairly': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'define': 0.26; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; 'types.': 0.31; 'universal': 0.31; 'class': 0.32; 'subject:with': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'possible': 0.36; 'thank': 0.38; 'making': 0.63; 'term': 0.63; 'subject:The': 0.64; 'to:addr:gmail.com': 0.65; 'within': 0.65; 'url:pdf': 0.68; 'sound': 0.68; 'behavior': 0.77; 'difference.': 0.84; 'washington': 0.93 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=Ehri14mdadQoWUufZyCyfIKeYSqUp87YFgmHTlf0LGo=; b=ck9sOOEiFL7sPxlRpMu2sfWbsEhVL1Yp5gtxcm45/GKiXfTiAmKVUCB2NDOTB6x8Tx NEgtBGPN0OVZE8ZzJtV1igTVOYw0wwVaeL+ZGygH5+zvWFxVv05Se8WQsxdGBoFFNbIA E6Fq/BpbTvePBNVUpkbbPARhN1W2YUEUhJvS1olkcloXkk4JIdPPG8ifDA8wBiBSXbOY /aoqRHVVVU9goebpORvcmWWAQo82JM2U3vYFPTMdXgsHg8lloC+OogjvGvZL6pbynsSU JVznNYkFIqHp5dvK6Ovm4J9YBJz6yWYZvjw7o/sYXUfdtdVqXcgdQ1xpBp/9SsEGQA3z GpNA== MIME-Version: 1.0 X-Received: by 10.194.118.132 with SMTP id km4mr3011516wjb.82.1370575802493; Thu, 06 Jun 2013 20:30:02 -0700 (PDT) In-Reply-To: <2a31d89e-c805-47ad-86d0-9f4ffa3edf9c@z10g2000pbn.googlegroups.com> References: <687dea63-84da-4c45-9366-cb5a10665d1f@googlegroups.com> <31ca14e1-973d-44e6-886c-011a55755d76@googlegroups.com> <96cd7a31-40ce-4e51-9489-446b7f002a0e@googlegroups.com> <51afec46$0$29966$c3e8da3$5496439d@news.astraweb.com> <51b0565d$0$11118$c3e8da3@news.astraweb.com> <8275844b-ac41-46ab-a49a-9b796f31ebcf@ks18g2000pbb.googlegroups.com> <51b14573$0$29966$c3e8da3$5496439d@news.astraweb.com> <2a31d89e-c805-47ad-86d0-9f4ffa3edf9c@z10g2000pbn.googlegroups.com> Date: Thu, 6 Jun 2013 20:30:02 -0700 Subject: Re: Bools and explicitness [was Re: PyWart: The problem with "print"] From: Mark Janssen To: rusi Content-Type: text/plain; charset=ISO-8859-1 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: 19 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1370575810 news.xs4all.nl 15871 [2001:888:2000:d::a6]:36573 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:47305 > Fairly definitive terms have existed since 1985: > http://lucacardelli.name/Papers/OnUnderstanding.A4.pdf >> >> You are making an "outside view of a function" (until a better term is >> found). So that give you one possible view of polymorphism. However, >> *within* a class that I would write, you would not see polymorphism >> like you have in C++, where it is within the *function closure* >> itself. Instead you would see many if/then combinations to define >> the behavior given several input types. I would call this simulated >> polymorphism. > > Cardelli and Wegner cited above call this ad-hoc polymorphism. > What you are calling polymorphism, they call universal polymorphism. Okay, THANK YOU for the reference. The main thing to note is that there is a difference. Those terms sound good enough. -- MarkJ Tacoma, Washington