changelog shortlog graph tags branches files raw help

changeset: created

changeset 136: 2e01ee0e1a5d
parent 135: e89ca3107b21
child 137: c149681e8324
author: 127.0.0.1
date: Sat, 07 Dec 2013 00:11:26 +0100
files: speed5.py
description: created
     1.1--- a/speed5.py	Sat Dec 07 00:11:00 2013 +0100
     1.2+++ b/speed5.py	Sat Dec 07 00:11:26 2013 +0100
     1.3@@ -1,8 +1,8 @@
     1.4 CACHE = {1: 1}
     1.5+MISSED = object()
     1.6 
     1.7 def run():
     1.8-    missed = object()
     1.9     for i in xrange(100000):
    1.10-        x = CACHE.get(1, missed)
    1.11-        if x is missed:
    1.12+        x = CACHE.get(1, MISSED)
    1.13+        if x is MISSED:
    1.14             x = 1
    1.15\ No newline at end of file