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.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python,': 0.02; 'that?': 0.05; 'attribute': 0.07; 'compiler': 0.07; 'bytecode': 0.16; 'really?': 0.16; 'run-time.': 0.16; 'subject:member': 0.16; 'subject:versus': 0.16; 'underlying': 0.16; 'wrote:': 0.18; "python's": 0.19; 'sorry,': 0.24; 'compiled': 0.26; 'header:In- Reply-To:1': 0.27; 'generally': 0.29; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'consequence': 0.31; 'types.': 0.31; "can't": 0.35; 'no,': 0.35; 'objects': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'being': 0.38; 'nov': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'ian': 0.60; 'matter': 0.61; 'compiling': 0.84; 'apparent': 0.91; 'whereas': 0.91; '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:from:date:message-id:subject:to :content-type; bh=Hjebqo810H4/9QPTJhMpecDLyylAHn7jJ9Rw7tSTkx8=; b=LMTx7lqkBL+5244NY5KHQQTw9Z0VE5lIxKttyHIiUDUYYQDEvxaejhBuJ3mOKP6vXa v3H+DmzPKGnbf8FOAXtgB219h8gfTbT2hqlrM+oynVT2qRyP/h4tK/XtQi8WG5u7yNLj 5POroJbyjsQFRfbn0ViMOG8zGxTN6au6esgBFfcqQ5GSDGsxZilCUnrb30F5oTgYp6Oz 1YZZFLfRIGbdM8lCtW+QN9wpwxFvOzFBj8U8sEYwZULRB+aYrmWhhLMpKzkFZjdLUPAr Abq6ZnTS/z2HO40rZPB1kPWVTi3V/aFQUOI0wq08gbQPqBT9L+0tEIkfAVHFzB/bFXR1 WvhQ== X-Received: by 10.66.136.167 with SMTP id qb7mr15456656pab.43.1383532095249; Sun, 03 Nov 2013 18:28:15 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <7612355b-ae3b-47b9-9608-0b3e993f7452@googlegroups.com> References: <46d5788e-f081-48d8-b839-f31a0c95bd21@googlegroups.com> <7612355b-ae3b-47b9-9608-0b3e993f7452@googlegroups.com> From: Ian Kelly Date: Sun, 3 Nov 2013 19:27:34 -0700 Subject: Re: zero argument member functions versus properties To: Python 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: 1383532105 news.xs4all.nl 15951 [2001:888:2000:d::a6]:40875 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58425 On Sun, Nov 3, 2013 at 2:23 PM, Peter Cacioppi wrote: > Ian said : > > " Whereas in Python, an attribute access is just > compiled as an attribute access no matter what the underlying > implementation of that access may end up being at run-time. " > > Really? Very nice. Have a good link handy for that? I'm compiling a codex of "why py is better?". Sorry, no, but this fact should be apparent as a consequence of Python's dynamicism. Since the compiler generally can't predict what the types of objects will be, the bytecode that it generates can't depend on those types.