Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.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.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'subject:Python': 0.05; '21,': 0.09; 'api': 0.09; 'differently,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'idioms': 0.16; 'programmer,': 0.16; 'language': 0.16; 'wed,': 0.17; 'wrote:': 0.18; 'trying': 0.21; 'received:209.85.210.174': 0.21; 'received:mail-iy0-f174.google.com': 0.21; 'header:In-Reply- To:1': 0.22; 'steve': 0.24; 'saying': 0.26; 'users.': 0.28; "i'm": 0.28; 'message-id:@mail.gmail.com': 0.29; 'pm,': 0.29; 'differently': 0.30; 'quite': 0.31; 'identical': 0.34; 'to:addr :python-list': 0.35; 'two': 0.36; 'but': 0.37; 'received:google.com': 0.37; 'skip:" 10': 0.37; 'either': 0.37; 'received:209.85': 0.38; 'despite': 0.38; 'option': 0.39; 'that.': 0.39; 'received:209': 0.39; 'greatly': 0.40; 'to:addr:python.org': 0.40; 'your': 0.61; 'choose': 0.64; 'hand,': 0.76; '"so': 0.84; 'howell': 0.84; 'often,': 0.84 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 :content-type:content-transfer-encoding; bh=WDDn7C8j1n4SGdOBrpwXrrFt/JVu/q8V2F/qL0hazSE=; b=0odjG9XPWWxLbbJbxQswO0I6Bs/nAwvyNSvTQo3T+dU0eMuRVh940aIMvc1Zp1ZkX0 D65Np8Itv62wvW+sIc5JbrNJNrzJ3taOQYWFuyIe2HnKj/EF7A/tH1gsdNIN6Rk/75Nz K0F4oLXT2w1krIRXZTpYIkKh6FCfyVch8UDlbVcour4CBbKVucVt0a0wcKHSVezbGVSH rPsgbnhSMePCvY1C1M3fmJJmpvS0DE4+tvw2b1++h8p7oxyipdx2Bknga8nICH09KTpl hkNGSZ7Ou4pIsUBDt8SBhmKnFo66AD+TlhrCZpsIS6iuqS60WGAOQ4kus/lTo/J9NpOl ALqw== MIME-Version: 1.0 In-Reply-To: <6af70db0-dc4a-48ee-9ee2-1a934846d5f2@r2g2000pbs.googlegroups.com> References: <4f612b19$0$1379$4fafbaef@reader2.news.tin.it> <50e9ceec-40f1-4ead-b2b6-87328b30d084@ow8g2000pbc.googlegroups.com> <4f691f3d$0$29981$c3e8da3$5496439d@news.astraweb.com> <87d386lmai.fsf@benfinney.id.au> <8a77bf8d-b12f-442b-a1a3-479b5d66d366@tx8g2000pbc.googlegroups.com> <6af70db0-dc4a-48ee-9ee2-1a934846d5f2@r2g2000pbs.googlegroups.com> Date: Wed, 21 Mar 2012 17:59:23 +1100 Subject: Re: Python is readable From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1332313166 news.xs4all.nl 6931 [2001:888:2000:d::a6]:57348 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21974 On Wed, Mar 21, 2012 at 5:52 PM, Steve Howell wrote: > On the one hand, you say that "push(stack, item)" reads quite > differently from "stack.push(item)". > > On the other hand, you say they are "so close to identical as makes no > odds." > > I'm trying to make sense of that. =A0Are you saying that the way the two > idioms read makes no odds, despite reading quite differently? If you're designing a language (or, often, a library/module), you can choose either option without greatly annoying your users. As a programmer, I use both types of API all the time. Yes, they read differently, but neither is confusing, and you can easily grok that they do the same thing. ChrisA