Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'subject:Python': 0.05; 'interpreter.': 0.07; 'dict': 0.09; 'keyed': 0.09; 'aug': 0.13; 'driscoll': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:Objects': 0.16; 'third,': 0.16; 'variable.': 0.16; 'wrote:': 0.17; 'variables': 0.17; 'variable': 0.20; 'received:209.85.214.174': 0.21; 'header :In-Reply-To:1': 0.25; 'looks': 0.26; 'message- id:@mail.gmail.com': 0.27; 'code': 0.31; 'addresses': 0.32; 'could': 0.32; "aren't": 0.33; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'stores': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'build': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'more': 0.63; '26,': 0.65; 'technically': 0.91 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=AKmvdYgJ+0V7SF/YPBbj//ZcAG40YKjyevVDHKDM4UM=; b=uASTlG23uaNGLKm6w/olFnhC881cGX6llX1UnajYEUDrAUikG7WbLscuJyXF0D0Sf6 mXjkMQf370ALxkuMxV9DVV9Bck4PUvpF9/OTH2JKPgh6H/OzOwBQn9lTISQJAB3AYQGy 4nvkswynEsFkL56WnavFJJhYcLwktE2fu4p6cz0TrrvLPeGjrq754PoonyB6KCf3Vhy5 aogV5+HC4GSrX7k3a4ctW4cgCnJ4cBlpdZ4WQxpWt0qzaRdJ1G/tf95Q0sIVhBAdvi9e 7NTeM5hpUxzIRMwvIMs+dGCPAOCa3rYKxpeo+ZuXrF5R4Yy/ogJmZKWsJ3bYEvbCs8+K rhAg== MIME-Version: 1.0 In-Reply-To: <5039B813.8020603@cs.wisc.edu> References: <18409992-1e28-4721-8e64-60c69668da4e@googlegroups.com> <87d32i1ntc.fsf@benfinney.id.au> <7df4c317-7ad8-4158-900a-b52f19c3caf2@k9g2000pbr.googlegroups.com> <503750b9$0$6574$c3e8da3$5496439d@news.astraweb.com> <5039B813.8020603@cs.wisc.edu> Date: Sun, 26 Aug 2012 16:22:05 +1000 Subject: Re: Re: Objects in Python 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.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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1345962128 news.xs4all.nl 6947 [2001:888:2000:d::a6]:38948 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:27905 On Sun, Aug 26, 2012 at 3:45 PM, Evan Driscoll wrote: > Third, and more wackily, you could technically create a C implementation > that works like Python, where it stores variables (whose addresses aren't > taken) in a dict keyed by name, and generates code that on a variable access > looks up the value by accessing that dict using the name of the variable. That would be a reasonable way to build a C interactive interpreter. ChrisA