Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33444

Re: Lazy Attribute

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <demianbrecht@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.017
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'url:pypi': 0.03; 'decorator': 0.07; 'pypi': 0.07; 'url:github': 0.09; 'cc:addr :python-list': 0.10; ';-)': 0.11; 'putting': 0.20; 'basis,': 0.22; 'cc:2**0': 0.23; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'wondering': 0.26; 'module.': 0.27; 'skip:@ 10': 0.27; 'lines': 0.28; 'code': 0.31; 'url:python': 0.32; 'loading': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'saved': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'message-id:@gmail.com': 0.36; 'url:org': 0.36; 'alone': 0.36; 'charset:us-ascii': 0.36; 'does': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'header:Received:5': 0.40; "you've": 0.61; 'header:Message-Id:1': 0.62; 'cut': 0.71; 'unaware': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=HU0LasXifxSU+QRw/OHNGwdk4aZD9bTS2ibWBQ2d4Zw=; b=Zc4RNWSsFB+R8NVwGIbZvC4/vIbDLdH4/DLoMgQMmR7rYVscS/g2z0PFFVVHQ25/6B CaHdixp+EjZGCfoumuohvIUmXfPf2E8IoaIbFWvkos+KBS0oX3LvQ2t1Rl4l2mv8OCUp 46RQzJw4RtqdD4gMs5iEiQ4Hkmen3ChGpVFo6Pq/VpzodOfU0p/G5Dbst5abSQGr7vR7 SXV66e2nN297ECV+zIt37pJixklv1TqQjckjTV6oCid88ebqANv/ns/oR4OaM/AFo//u SShu2ELSPHPA5LeVgmo7mqYF5jN56iGhEHtOCWJ1c8mDldkXZfh4na+7+P4XuroVrthr JXHQ==
Content-Type text/plain; charset=us-ascii
Mime-Version 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject Re: Lazy Attribute
From Demian Brecht <demianbrecht@gmail.com>
In-Reply-To <9CA84FCB-5292-4191-B4DE-6926DD0FFCB4@epy.co.at>
Date Fri, 16 Nov 2012 07:22:54 -0800
Content-Transfer-Encoding quoted-printable
References <DUB117-W881D7D74D529D159D8B33F91520@phx.gbl> <9CA84FCB-5292-4191-B4DE-6926DD0FFCB4@epy.co.at>
To "Stefan H. Holek" <stefan@epy.co.at>
X-Mailer Apple Mail (2.1499)
Cc "python-list@python.org" <python-list@python.org>
X-BeenThere python-list@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-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3753.1353079381.27098.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1353079381 news.xs4all.nl 6907 [2001:888:2000:d::a6]:54421
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:33444

Show key headers only | View raw


> There is a ready made and well tested lazy decorator at http://pypi.python.org/pypi/lazy. I even has a better name. ;-)

I was ignorantly unaware of this module. You've saved me a few lines of code every time I want to achieve lazy loading - thanks :)

> Since people seem to come up with their own implementations on a bi-weekly basis, I am seriously wondering how to improve its visibility. Putting it on PyPI alone does not cut it, apparently.


This was a good start ;)

Demian Brecht
@demianbrecht
http://demianbrecht.github.com



Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Lazy Attribute Demian Brecht <demianbrecht@gmail.com> - 2012-11-16 07:22 -0800

csiph-web