Author: Antonio Cuni <[email protected]> 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 _______________________________________________ pypy-commit mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-commit
