Browse Source

Sortable

pull/45/head
Jure Šorn 6 years ago
parent
commit
4f9226592a
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -934,7 +934,7 @@ class MyHashable:
``` ```
### Sortable ### Sortable
* **With 'total_ordering' decorator you only need to provide one of lt(), gt(), le(), ge() magic methods.** * **With 'total_ordering' decorator you only need to provide one of lt(), gt(), le() or ge() magic methods.**
```python ```python
from functools import total_ordering from functools import total_ordering

2
index.html

@ -833,7 +833,7 @@ creature = Creature(Point(<span class="hljs-number">0</span>, <span class="hljs
</code></pre> </code></pre>
<h3 id="sortable">Sortable</h3> <h3 id="sortable">Sortable</h3>
<ul> <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> </ul>
<pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> functools <span class="hljs-keyword">import</span> total_ordering <pre><code class="python language-python hljs"><span class="hljs-keyword">from</span> functools <span class="hljs-keyword">import</span> total_ordering

|||||||
100:0
Loading…
Cancel
Save