You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2168,7 +2168,7 @@ with <lock>: # Enters the block by calling acq
2168
2168
2169
2169
Operator
2170
2170
--------
2171
-
**Module of functions that provide the functionality of operators. Functions are ordered by operator precedence, starting with least binding.**
2171
+
**Module of functions that provide the functionality of operators. Functions are ordered and grouped by operator precedence from least to most binding. Logical and arithmetic operators in rows 1, 3 and 5 are also ordered by precedence within a group.**
2172
2172
```python
2173
2173
import operator as op
2174
2174
```
@@ -2419,9 +2419,9 @@ import matplotlib.pyplot as plt
2419
2419
plt.plot/bar/scatter(x_data, y_data [, label=<str>]) # Also plt.plot(y_data).
2420
2420
plt.legend() # Adds a legend.
2421
2421
plt.title/xlabel/ylabel(<str>) # Adds a title or label.
2422
-
plt.savefig(<path>) # Saves the figure.
2423
-
plt.show() # Displays the figure.
2424
-
plt.clf() # Clears the figure.
2422
+
plt.savefig(<path>) # Saves the plot.
2423
+
plt.show() # Displays the plot.
2424
+
plt.clf() # Clears the plot.
2425
2425
```
2426
2426
2427
2427
@@ -2876,7 +2876,7 @@ import wave
2876
2876
<int>=<Wave>.getnchannels() # Returns number of samples per frame.
2877
2877
<int>=<Wave>.getsampwidth() # Returns number of bytes per sample.
2878
2878
<tuple>=<Wave>.getparams() # Returns namedtuple of all parameters.
2879
-
<bytes>=<Wave>.readframes(nframes) # Returns next n frames. All if -1.
2879
+
<bytes>=<Wave>.readframes(nframes) # Returns next n frames (-1 returns all).
<li><strong>Exceptions that happen inside threads are raised when map iterator's next() or Future's result() are called. Future's exception() method returns exception object or None.</strong></li>
1776
1776
<li><strong>ProcessPoolExecutor provides true parallelism but: everything sent to/from workers must be <ahref="#pickle">pickable</a>, queues must be sent using executor's 'initargs' and 'initializer' parameters, and executor should only be reachable via <codeclass="python hljs"><spanclass="hljs-string">'if __name__ == "__main__": ...'</span></code>.</strong></li>
1777
1777
</ul>
1778
-
<div><h2id="operator"><ahref="#operator" name="operator">#</a>Operator</h2><p><strong>Module of functions that provide the functionality of operators. Functions are ordered by operator precedence, starting with least binding.</strong></p><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">import</span> operator <spanclass="hljs-keyword">as</span> op
1778
+
<div><h2id="operator"><ahref="#operator" name="operator">#</a>Operator</h2><p><strong>Module of functions that provide the functionality of operators. Functions are ordered and grouped by operator precedence from least to most binding. Logical and arithmetic operators in rows 1, 3 and 5 are also ordered by precedence within a group.</strong></p><pre><codeclass="python language-python hljs"><spanclass="hljs-keyword">import</span> operator <spanclass="hljs-keyword">as</span> op
plt.plot/bar/scatter(x_data, y_data [, label=<str>]) <spanclass="hljs-comment"># Also plt.plot(y_data).</span>
1980
1980
plt.legend() <spanclass="hljs-comment"># Adds a legend.</span>
1981
1981
plt.title/xlabel/ylabel(<str>) <spanclass="hljs-comment"># Adds a title or label.</span>
1982
-
plt.savefig(<path>) <spanclass="hljs-comment"># Saves the figure.</span>
1983
-
plt.show() <spanclass="hljs-comment"># Displays the figure.</span>
1984
-
plt.clf() <spanclass="hljs-comment"># Clears the figure.</span>
1982
+
plt.savefig(<path>) <spanclass="hljs-comment"># Saves the plot.</span>
1983
+
plt.show() <spanclass="hljs-comment"># Displays the plot.</span>
1984
+
plt.clf() <spanclass="hljs-comment"># Clears the plot.</span>
1985
1985
</code></pre></div>
1986
1986
1987
1987
<div><h2id="table"><ahref="#table" name="table">#</a>Table</h2><div><h4id="printsacsvspreadsheettotheconsole">Prints a CSV spreadsheet to the console:</h4><pre><codeclass="python language-python hljs"><spanclass="hljs-comment"># $ pip3 install tabulate</span>
0 commit comments