Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!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.024 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'duplicate': 0.07; 'string': 0.09; 'http': 0.09; 'modulo': 0.09; 'subject:()': 0.09; 'api': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'inclined': 0.16; 'messy': 0.16; 'roy': 0.16; 'sorts': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'mon,': 0.24; 'gets': 0.27; 'header :In-Reply-To:1': 0.27; 'rest': 0.29; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; '25,': 0.31; 'interface': 0.32; 'could': 0.34; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'nov': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'full': 0.61; "you're": 0.61; 'talking': 0.65; 'beautiful': 0.68; 'smith': 0.68; 'presumably': 0.84; 'subject:skip:o 10': 0.84; 'traffic.': 0.84; '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 :content-type; bh=uOsIRs0oGQRDrRgRoFbvCzaxibvG96uatB24YR8+u7o=; b=E0/rBG7cLDdrdfDexYh8mXnLL4RuGxFw5yOJqYScmx1cabSiNZ4i0t4gJuyndrYR+2 fZ2Z2CZFzbeCQ110lz/LTzjyB/Qgcu/2jTEkU5hgLfONTAxHIjzH6tTu5M6PSDBfdklh w476cwWCr4ja1dptU8+rZBaLEJCLpsbUZJHT4ZEbN4xCeyQhM5osn1zUkGrYItTkJz41 GnBqdcrkjumLnfvFdZdAgCWNDN+Q5EgU56FHvxuozvQheMH7BSukTS6ed1jYITGyZXX7 XZNkPh3ZPsXrNAEURDg5ypQ4aEbiVctv6511YpbNJ6yVFDmbahh00XtqzmhBTAeBNnpD K8SA== MIME-Version: 1.0 X-Received: by 10.66.142.107 with SMTP id rv11mr22969121pab.17.1385303506330; Sun, 24 Nov 2013 06:31:46 -0800 (PST) In-Reply-To: References: <529202e3$0$29993$c3e8da3$5496439d@news.astraweb.com> Date: Mon, 25 Nov 2013 01:31:46 +1100 Subject: Re: Implement logic on object.attribute and object.attribute() From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1385303515 news.xs4all.nl 15942 [2001:888:2000:d::a6]:60720 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:60377 On Mon, Nov 25, 2013 at 1:21 AM, Roy Smith wrote: > If the REST interface is designed properly, all the GETs are > nullipotent, so modulo efficiency, it should all work. Yes, but "modulo efficiency" is not something you want to do when you're talking network traffic. If this were just allocating a bit of memory, then I might be inclined to let it duplicate the work (if the API were sufficiently beautiful to justify it, which IMHO this one isn't), but a full HTTP round trip? And this is presumably all synchronous, as otherwise all sorts of things would get messy (you'd have a string that doesn't have a value yet... could be awkward). ChrisA