Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 75dd1c8

Browse files
committed
Small fixes
1 parent ea435a6 commit 75dd1c8

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ Format
468468
+---------------+-----------------+-----------------+-----------------+-----------------+
469469
```
470470

471-
### Integers
471+
### Ints
472472
```python
473473
{90:c} # 'Z'
474474
{90:b} # '1011010'
@@ -2222,8 +2222,8 @@ type(MyMetaClass) == type # MyMetaClass is an instance of type.
22222222
| MyClass --> MyMetaClass |
22232223
| | v |
22242224
| object -----> type <+ |
2225-
| | ^ +--+ |
2226-
| str ----------+ |
2225+
| | ^ +--+ |
2226+
| str ---------+ |
22272227
+-------------+-------------+
22282228
```
22292229

@@ -2283,10 +2283,10 @@ def main(screen):
22832283
async def main_coroutine(screen):
22842284
state = {'*': P(0, 0), **{id_: P(30, 10) for id_ in range(10)}}
22852285
moves = asyncio.Queue()
2286-
coros = [*[random_controller(id_, moves) for id_ in range(10)],
2286+
coros = (*(random_controller(id_, moves) for id_ in range(10)),
22872287
human_controller(screen, moves),
22882288
model(moves, state, *screen.getmaxyx()),
2289-
view(state, screen)]
2289+
view(state, screen))
22902290
await asyncio.wait(coros, return_when=asyncio.FIRST_COMPLETED)
22912291

22922292
async def random_controller(id_, moves):

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@
559559
| 567.89 | '5.7e+02' | '567.89' | '5.68e+02' | '56789.00%' |
560560
+---------------+-----------------+-----------------+-----------------+-----------------+
561561
</code></pre>
562-
<div><h3 id="integers">Integers</h3><pre><code class="python language-python hljs">{<span class="hljs-number">90</span>:c} <span class="hljs-comment"># 'Z'</span>
562+
<div><h3 id="ints">Ints</h3><pre><code class="python language-python hljs">{<span class="hljs-number">90</span>:c} <span class="hljs-comment"># 'Z'</span>
563563
{<span class="hljs-number">90</span>:b} <span class="hljs-comment"># '1011010'</span>
564564
{<span class="hljs-number">90</span>:X} <span class="hljs-comment"># '5A'</span>
565565
</code></pre></div>
@@ -1934,8 +1934,8 @@
19341934
| MyClass --&gt; MyMetaClass |
19351935
| | v |
19361936
| object -----&gt; type &lt;+ |
1937-
| | ^ +--+ |
1938-
| str ----------+ |
1937+
| | ^ +--+ |
1938+
| str ---------+ |
19391939
+-------------+-------------+
19401940
</code></pre>
19411941
<div><h3 id="inheritancediagram">Inheritance Diagram</h3><pre><code class="python language-python hljs">MyClass.__base__ == object <span class="hljs-comment"># MyClass is a subclass of object.</span>
@@ -1980,10 +1980,10 @@
19801980
<span class="hljs-keyword">async</span> <span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">main_coroutine</span><span class="hljs-params">(screen)</span>:</span>
19811981
state = {<span class="hljs-string">'*'</span>: P(<span class="hljs-number">0</span>, <span class="hljs-number">0</span>), **{id_: P(<span class="hljs-number">30</span>, <span class="hljs-number">10</span>) <span class="hljs-keyword">for</span> id_ <span class="hljs-keyword">in</span> range(<span class="hljs-number">10</span>)}}
19821982
moves = asyncio.Queue()
1983-
coros = [*[random_controller(id_, moves) <span class="hljs-keyword">for</span> id_ <span class="hljs-keyword">in</span> range(<span class="hljs-number">10</span>)],
1983+
coros = (*(random_controller(id_, moves) <span class="hljs-keyword">for</span> id_ <span class="hljs-keyword">in</span> range(<span class="hljs-number">10</span>)),
19841984
human_controller(screen, moves),
19851985
model(moves, state, *screen.getmaxyx()),
1986-
view(state, screen)]
1986+
view(state, screen))
19871987
<span class="hljs-keyword">await</span> asyncio.wait(coros, return_when=asyncio.FIRST_COMPLETED)
19881988

19891989
<span class="hljs-keyword">async</span> <span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">random_controller</span><span class="hljs-params">(id_, moves)</span>:</span>

0 commit comments

Comments
 (0)