Browse Source

MyIterable

pull/44/head
Jure Šorn 5 years ago
parent
commit
27d79e6d04
2 changed files with 6 additions and 6 deletions
  1. 6
      README.md
  2. 6
      index.html

6
README.md

@ -1204,10 +1204,10 @@ class MyIterable:
```
```python
>>> a = MyIterable([1, 2, 3])
>>> iter(a)
>>> z = MyIterable([1, 2, 3])
>>> iter(z)
<generator object MyIterable.__iter__ at 0x1026c18b8>
>>> 1 in a
>>> 1 in z
True
```

6
index.html

@ -1135,10 +1135,10 @@ lock = threading.RLock(); <span class="hljs-keyword">with</span> lock: ...
<pre><code class="python language-python hljs"><span class="hljs-meta">&gt;&gt;&gt; </span>a = MyIterable([<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>iter(a)
<pre><code class="python language-python hljs"><span class="hljs-meta">&gt;&gt;&gt; </span>z = MyIterable([<span class="hljs-number">1</span>, <span class="hljs-number">2</span>, <span class="hljs-number">3</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span>iter(z)
&lt;generator object MyIterable.__iter__ at <span class="hljs-number">0x1026c18b8</span>&gt;
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-number">1</span> <span class="hljs-keyword">in</span> a
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-number">1</span> <span class="hljs-keyword">in</span> z
<span class="hljs-keyword">True</span>
</code></pre>
<div><h3 id="collection">Collection</h3><ul>

Loading…
Cancel
Save