|
|
@ -833,7 +833,7 @@ creature = Creature(Point(<span class="hljs-number">0</span>, <span class="hljs |
|
|
|
</code></pre> |
|
|
|
<h3 id="sortable">Sortable</h3> |
|
|
|
<ul> |
|
|
|
<li><strong>With 'total_ordering' decorator you only need to provide one of lt(), gt(), le(), ge() magic methods.</strong></li> |
|
|
|
<li><strong>With 'total_ordering' decorator you only need to provide one of lt(), gt(), le() or ge() magic methods.</strong></li> |
|
|
|
</ul> |
|
|
|
<pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> functools <span class="hljs-keyword">import</span> total_ordering |
|
|
|
|
|
|
|