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


Groups > comp.lang.python > #6988

Re: except KeyError, everywhere

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.octanews.net!mauve.octanews.net!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail
From Ben Finney <ben+python@benfinney.id.au>
Newsgroups comp.lang.python
Subject Re: except KeyError, everywhere
References <mailman.2437.1307132130.9059.python-list@python.org> <87sjrq4g4l.fsf@benfinney.id.au>
X-Public-Key-ID 0xAC128405
X-Public-Key-Fingerprint 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-pubkey.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
Date Sat, 04 Jun 2011 10:37:28 +1000
Message-ID <87k4d24ek7.fsf@benfinney.id.au> (permalink)
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)
Cancel-Lock sha1:lOFJLjsGKjmxx+bSERdudmUQRcM=
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
Lines 14
Organization Unlimited download news at news.astraweb.com
NNTP-Posting-Host f349f149.news.astraweb.com
X-Trace DXC=25=R5[A^gAFMnc]O[a9m]EL?0kYOcDh@JN7:H2`MmAUC[OgPl_:lSHE]G;2>V^?kWCbEW9A[5UK?ENZ[SL`C\KgCl`mE0?Y4BFB
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:6988

Show key headers only | View raw


Ben Finney <ben+python@benfinney.id.au> writes:

> It's best to implement Memoize as a Python decorator in one place
> <URL:http://wiki.python.org/moin/PythonDecoratorLibrary#Memoize>.

Michele Simionato discusses a better implementation of a Memoize
decorator in the documentation for his useful ‘decorator’ library
<URL:http://micheles.googlecode.com/hg/decorator/documentation.html>.

-- 
 \                “Stop — Drive sideways.” —detour sign, Kyushu, Japan |
  `\                                                                   |
_o__)                                                                  |
Ben Finney

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


Thread

except KeyError, everywhere Wilbert Berendsen <wbsoft@xs4all.nl> - 2011-06-03 22:08 +0200
  Re: except KeyError, everywhere Nobody <nobody@nowhere.com> - 2011-06-04 01:02 +0100
    Re: except KeyError, everywhere --> memoization Wilbert Berendsen <wbsoft@xs4all.nl> - 2011-06-05 00:27 +0200
    Re: except KeyError, everywhere "Gabriel Genellina" <gagsl-py2@yahoo.com.ar> - 2011-06-07 00:45 -0300
      Re: except KeyError, everywhere Ben Finney <ben+python@benfinney.id.au> - 2011-06-07 14:08 +1000
  Re: except KeyError, everywhere Ben Finney <ben+python@benfinney.id.au> - 2011-06-04 10:03 +1000
    Re: except KeyError, everywhere Ben Finney <ben+python@benfinney.id.au> - 2011-06-04 10:37 +1000

csiph-web