Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Lazy Attribute

Received: by 10.180.80.71 with SMTP id p7mr241636wix.4.1353486767715;
        Wed, 21 Nov 2012 00:32:47 -0800 (PST)
Path: q13ni3759wii.0!nntp.google.com!feeder2.cambriumusenet.nl!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!backlog1.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path: <andriy.kornats...@live.com>
X-Original-To: python-l...@python.org
Delivered-To: python-l...@mail.python.org
X-Spam-Status: OK 0.151
X-Spam-Level: *
X-Spam-Evidence: '*H*': 0.84; '*S*': 0.14; 'attribute': 0.05;
	'welcome.': 0.07; 'python': 0.09; 'class:': 0.16; 'to:name:python-
	l...@python.org': 0.20; 'thanks.': 0.21; 'post': 0.28; 'url:2012':
	0.30; 'comments': 0.33; 'from:addr:live.com': 0.33; 'to:addr
	:python-list': 0.33; 'shows': 0.38; 'to:addr:python.org': 0.39;
	'your': 0.60; 'url:blogspot': 0.64; 'url:11': 0.71; 'demand':
	0.96; 'charset:windows-1251': 0.97
X-Originating-IP: [213.130.16.2]
From: Andriy Kornatskyy <andriy.kornats...@live.com>
To: "python-l...@python.org" <python-l...@python.org>
Subject: Lazy Attribute
Date: Thu, 15 Nov 2012 22:33:24 +0300
Importance: Normal
MIME-Version: 1.0
X-OriginalArrivalTime: 15 Nov 2012 19:33:24.0836 (UTC)
	FILETIME=[144F2A40:01CDC368]
X-BeenThere: python-l...@python.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: General discussion list for the Python programming language
	<python-list.python.org>
List-Unsubscribe: <http://mail.python.org/mailman/options/python-list>,
	<mailto:python-list-requ...@python.org?subject=unsubscribe>
List-Archive: <http://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-l...@python.org>
List-Help: <mailto:python-list-requ...@python.org?subject=help>
List-Subscribe: <http://mail.python.org/mailman/listinfo/python-list>,
	<mailto:python-list-requ...@python.org?subject=subscribe>
Newsgroups: comp.lang.python
Message-ID: <mailman.3723.1353008072.27098.python-l...@python.org>
Lines: 15
NNTP-Posting-Host: 2001:888:2000:d::a6
X-Trace: 1353008072 news.xs4all.nl 6876 [2001:888:2000:d::a6]:40520
X-Complaints-To: ab...@xs4all.nl
Bytes: 2584
X-Original-Bytes: 2420
Content-Type: text/plain; charset="windows-1251"
Content-Transfer-Encoding: quoted-printable


A lazy attribute is an attribute that is calculated on demand and only once=
.

The post below shows how you can use lazy attribute in your Python class:

http://mindref.blogspot.com/2012/11/python-lazy-attribute.html

Comments or suggestions are welcome.

Thanks.

Andriy Kornatskyy

 		 	   		  =