Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.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.020 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'json': 0.07; 'api': 0.09; 'windows,': 0.09; 'from:addr:torriem': 0.16; 'from:name:michael torrie': 0.16; 'wrote:': 0.17; 'define': 0.20; 'sort': 0.21; 'lets': 0.22; 'external': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'am,': 0.27; 'environment.': 0.27; 'environment': 0.29; 'probably': 0.29; 'figure': 0.30; 'to:addr :python-list': 0.33; 'received:org': 0.36; 'message- id:@gmail.com': 0.36; 'does': 0.37; 'subject:: ': 0.38; 'object': 0.38; 'things': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'header:Received:5': 0.40; 'think': 0.40; 'discover': 0.72 X-Virus-Scanned: amavisd-new at torriefamily.org Date: Wed, 19 Dec 2012 17:27:44 -0700 From: Michael Torrie User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.11) Gecko/20121115 Thunderbird/10.0.11 MIME-Version: 1.0 To: python-list@python.org Subject: Re: context aware execution References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1355963276 news.xs4all.nl 6984 [2001:888:2000:d::a6]:57366 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:35168 On 12/19/2012 09:51 AM, Bart Thate wrote: > Think of sending JSON over the wire, reconstruct an object with it and then > let the object figure out what it can and cannot do in this external > environment. Probably the better way to do it is to formally define an API that lets an object discover things about its environment and then broker calls through it. This is sort of what COM does on windows, or Corba.