[pypy-svn] extradoc extradoc: add a missing return, change_method -> write_method
cfbolz
commits-noreply at bitbucket.org
Sat Mar 26 00:31:42 CET 2011
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: extradoc
Changeset: r3416:db05fa8a9f44
Date: 2011-03-26 00:22 +0100
http://bitbucket.org/pypy/extradoc/changeset/db05fa8a9f44/
Log: add a missing return, change_method -> write_method
diff --git a/talk/icooolps2011/paper.tex b/talk/icooolps2011/paper.tex
--- a/talk/icooolps2011/paper.tex
+++ b/talk/icooolps2011/paper.tex
@@ -756,7 +756,7 @@
checks that the class of \texttt{inst} is still the same. It will fail if the trace is
executed with an instance of another class. The third guard checks that the
class did not change since the trace was produced. It will fail if somebody
-calls the \texttt{change\_method} method on the class.
+calls the \texttt{write\_method} method on the class.
%___________________________________________________________________________
diff --git a/talk/icooolps2011/code/version.tex b/talk/icooolps2011/code/version.tex
--- a/talk/icooolps2011/code/version.tex
+++ b/talk/icooolps2011/code/version.tex
@@ -17,7 +17,7 @@
def _find_method(self, name, version):
return self.methods.get(name)
- def change_method(self, name, value):
+ def write_method(self, name, value):
self.methods[name] = value
self.version = VersionTag()
\end{lstlisting}
diff --git a/talk/icooolps2011/code/interpreter-slow.tex b/talk/icooolps2011/code/interpreter-slow.tex
--- a/talk/icooolps2011/code/interpreter-slow.tex
+++ b/talk/icooolps2011/code/interpreter-slow.tex
@@ -10,7 +10,7 @@
def find_method(self, name):
return self.methods.get(name, None)
- def change_method(self, name, value):
+ def write_method(self, name, value):
self.methods[name] = value
@@ -31,4 +31,5 @@
result = self.cls.find_method(name)
if result is None:
raise AttributeError
+ return result
\end{lstlisting}
More information about the Pypy-commit
mailing list