# HG changeset patch # User Armin Rigo <arigo@tunes.org> # Date 1365334506 -7200 # Sun Apr 07 13:35:06 2013 +0200 # Branch extradoc # Node ID 530358f34f23ae11b14bd82bf991531701a16260 # Parent 403e29079441fe73ba6b62f0d890d410906eefe6 Typo (thanks tshepang) diff --git a/performance.html b/performance.html --- a/performance.html +++ b/performance.html @@ -179,7 +179,7 @@ <h2>Old- vs. new-style classes</h2> <p>New-style classes allow faster attribute access and take up less core per instance than old-style classes. Much of this advantage may be -lostm, however, if attribute names are not constant. For example: x.a +lost, however, if attribute names are not constant. For example: x.a = y or even setattr(x, ‘a’, y) will be much faster than a dynamic version: setattr(x, ‘a’ + some_variable, y).</p> <p>Classes that inherit from both new- and old-style classes are diff --git a/source/performance.txt b/source/performance.txt --- a/source/performance.txt +++ b/source/performance.txt @@ -160,7 +160,7 @@ New-style classes allow faster attribute access and take up less core per instance than old-style classes. Much of this advantage may be -lostm, however, if attribute names are not constant. For example: x.a +lost, however, if attribute names are not constant. For example: x.a = y or even setattr(x, 'a', y) will be much faster than a dynamic version: setattr(x, 'a' + some_variable, y).