changelog shortlog graph tags branches files raw help

changeset: created

changeset 150: 96cf5784dadd
parent 149: 1695aee093dc
tag:tip
author: 127.0.0.1
date: Sat, 07 Dec 2013 11:07:46 +0100
files: memoize_method0.py
description: created
     1.1--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2+++ b/memoize_method0.py	Sat Dec 07 11:07:46 2013 +0100
     1.3@@ -0,0 +1,9 @@
     1.4+class Thing(object):
     1.5+    def do_something(self):
     1.6+        try:
     1.7+            result = self._do_something
     1.8+        except AttributeError:
     1.9+            result = ...
    1.10+            self.do_something = result
    1.11+        return result
    1.12+        
    1.13\ No newline at end of file