[pypy-commit] extradoc extradoc: expand virtuals

antocuni noreply at buildbot.pypy.org
Fri Apr 17 13:18:43 CEST 2015


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: extradoc
Changeset: r5536:673c2a4346a1
Date: 2015-04-17 13:13 +0200
http://bitbucket.org/pypy/extradoc/changeset/673c2a4346a1/

Log:	expand virtuals

diff --git a/talk/pycon-italy-2015/talk.rst b/talk/pycon-italy-2015/talk.rst
--- a/talk/pycon-italy-2015/talk.rst
+++ b/talk/pycon-italy-2015/talk.rst
@@ -226,7 +226,18 @@
 
 - Remove unnecessary load/store
 
-- "Abstraction for free"
+|small|
+|example<| |small| virtuals.py |end_small| |>|
+
+.. sourcecode:: python
+
+    res = 0
+    while res < 10000:
+        obj = Foo(x, y, z)
+        res += obj.x
+
+|end_example|
+|end_small|
 
 
 Example


More information about the pypy-commit mailing list