Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: Ian Kelly Newsgroups: comp.lang.python Subject: Re: Static caching property Date: Mon, 21 Mar 2016 11:44:22 -0600 Lines: 8 Message-ID: References: <35a5c4206a0c40e584d62d5d37b068b3@activenetwerx.com> <56f0230e$0$1616$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de 3aE/nNWsQU9sfUZ4Y6r7Tgk/AcqNuCunAriEITFYOEWQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'received:209.85.223': 0.03; '21,': 0.07; '2016': 0.16; 'attribute?': 0.16; 'descriptors': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'attribute': 0.18; 'do.': 0.22; 'not,': 0.22; 'am,': 0.23; 'properties': 0.24; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'message-id:@mail.gmail.com': 0.27; 'specifically': 0.28; 'class': 0.33; "d'aprano": 0.33; 'steven': 0.33; 'tue,': 0.34; 'received:google.com': 0.35; 'instance': 0.35; 'but': 0.36; 'instead': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'why': 0.39; 'to:addr:python.org': 0.40; 'called': 0.40; 'mar': 0.65; 'to:name:python': 0.84 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; bh=4g6F++w3Pw7SAUTPIhE8GDpinU9TXoEzIJ/8Ydm8eDM=; b=gLCHHRAebXGzGtus9C5xmrnpyZiOS+zxFBNnMGYOn5hiUFzAR+frmVOlt8T/M2S3fK MD/Kb0sxaVpIUFW4zRf1gn/7OUIe5NPm2yVOS5HSuC9srbHtPNU9pLkwBQFF7KHiW6kp Ke34u9cLwhysL00OoUpYRBtPkVYt4sYbDOBxVWONK9itjjvP2KXAixaxmbunmeJo4xBb u1VY2cAmA1XuC3awvIwCgZfN6ywlgdlos6iD36S9Fp7hjYJXQU/3SIbli/J4xsHj2cah Iw0gpMMy5k05fzYpxCI68oFwbySZXzG5NXuBeeCRpu8XL7iYi9X/jAsRyFBivAdbBXY1 pMtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=4g6F++w3Pw7SAUTPIhE8GDpinU9TXoEzIJ/8Ydm8eDM=; b=BKdNj7AM+QwqUXQCrQ8cXilRV7IHTbL7Nh/9vbdVhKcQIcmgHExW6DGsNhbSjU+R0e MfXkPnqGXRGtqiuE3AKc9edm9lPcejVuU033Gq5E/1z+k8F5yUf3R9SCMUxbzjJy3SVl 9U1BwjUPOPV6pbMbe8FJB5p1Z/nYugcSuewOpqY/Xj107BfyG+BNrKb3XQ96ceuteXER f6rsxkBoz2yv8oNEUjDsN5vUfr8ZSrMqyfqYE4GGJRXCYQ/EU2F9NvuVqHYeq80MUgzw AYJ96OgxMjdoF3vY3GbR28V0eeC4zRFXkSag1gn8Lcsf11cNJIIsrkMChxY1wBVx51oQ UGAg== X-Gm-Message-State: AD7BkJL3mYwrTU3+Rt5UnqCe02G2v2DTrbTgsjdX4ORGA91vsyHfF9I5/9JtEl62Oe32yAHkuhK8/3+rsTlyDQ== X-Received: by 10.107.19.140 with SMTP id 12mr33650414iot.11.1458582301581; Mon, 21 Mar 2016 10:45:01 -0700 (PDT) In-Reply-To: <56f0230e$0$1616$c3e8da3$5496439d@news.astraweb.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:105380 On Mon, Mar 21, 2016 at 10:36 AM, Steven D'Aprano wrote: > On Tue, 22 Mar 2016 03:15 am, Ian Kelly wrote: >> Why not do the same thing but using a class attribute instead of an >> instance attribute? > > Properties don't work when called from a class: Properties specifically do not, but descriptors in general do.