[pypy-commit] extradoc extradoc: backout unnecessary changes
fijal
noreply at buildbot.pypy.org
Sun Sep 23 11:33:54 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: extradoc
Changeset: r4820:091182b5ce2f
Date: 2012-09-23 11:33 +0200
http://bitbucket.org/pypy/extradoc/changeset/091182b5ce2f/
Log: backout unnecessary changes
diff --git a/talk/dls2012/demo/background.py b/talk/dls2012/demo/background.py
--- a/talk/dls2012/demo/background.py
+++ b/talk/dls2012/demo/background.py
@@ -3,9 +3,11 @@
class Background(ReloadHack):
def __init__(self):
+ self.fcnt = 0
self.image = 0
def update(self, frame):
- alfa = 0.9
+ self.fcnt += 1
+ alfa = self.fcnt/(self.fcnt + 1.0)
self.image = alfa * self.image + (1 - alfa) * frame
diff --git a/talk/stm2012/stmimpl.rst b/talk/stm2012/stmimpl.rst
--- a/talk/stm2012/stmimpl.rst
+++ b/talk/stm2012/stmimpl.rst
@@ -33,7 +33,7 @@
In this model there are two kinds of objects. As an object gets allocated,
it's created as a local object that's only visible to the current thread.
Local object operations are completely like STM-less operations, the fields
-are just modified. When object survives
+are just modified.
Objects are either global (visible to everybody, and read-only), or
they are local (visible only to the current thread).
More information about the pypy-commit
mailing list