Skip to content

Commit 3f1fa1a

Browse files
Deploy preview for PR 1211 🛫
1 parent ffca2a0 commit 3f1fa1a

File tree

585 files changed

+742
-594
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

585 files changed

+742
-594
lines changed

pr-preview/pr-1211/_sources/library/argparse.rst.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -732,9 +732,9 @@ By default, :mod:`!argparse` automatically handles the internal naming and
732732
display names of arguments, simplifying the process without requiring
733733
additional configuration.
734734
As such, you do not need to specify the dest_ and metavar_ parameters.
735-
The dest_ parameter defaults to the argument name with underscores ``_``
736-
replacing hyphens ``-`` . The metavar_ parameter defaults to the
737-
upper-cased name. For example::
735+
For optional arguments, the dest_ parameter defaults to the argument name, with
736+
underscores ``_`` replacing hyphens ``-``. The metavar_ parameter defaults to
737+
the upper-cased name. For example::
738738

739739
>>> parser = argparse.ArgumentParser(prog='PROG')
740740
>>> parser.add_argument('--foo-bar')

pr-preview/pr-1211/_sources/library/stdtypes.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2090,7 +2090,7 @@ expression support in the :mod:`re` module).
20902090
Return ``True`` if all characters in the string are alphanumeric and there is at
20912091
least one character, ``False`` otherwise. A character ``c`` is alphanumeric if one
20922092
of the following returns ``True``: ``c.isalpha()``, ``c.isdecimal()``,
2093-
``c.isdigit()``, or ``c.isnumeric()``. For example::
2093+
``c.isdigit()``, or ``c.isnumeric()``. For example:
20942094

20952095
.. doctest::
20962096

pr-preview/pr-1211/_sources/library/wave.rst.txt

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,21 @@ Wave_write Objects
199199
Set the number of channels.
200200

201201

202+
.. method:: getnchannels()
203+
204+
Return the number of channels.
205+
206+
202207
.. method:: setsampwidth(n)
203208

204209
Set the sample width to *n* bytes.
205210

206211

212+
.. method:: getsampwidth()
213+
214+
Return the sample width in bytes.
215+
216+
207217
.. method:: setframerate(n)
208218

209219
Set the frame rate to *n*.
@@ -213,26 +223,53 @@ Wave_write Objects
213223
integer.
214224

215225

226+
.. method:: getframerate()
227+
228+
Return the frame rate.
229+
230+
216231
.. method:: setnframes(n)
217232

218233
Set the number of frames to *n*. This will be changed later if the number
219234
of frames actually written is different (this update attempt will
220235
raise an error if the output stream is not seekable).
221236

222237

238+
.. method:: getnframes()
239+
240+
Return the number of audio frames written so far.
241+
242+
223243
.. method:: setcomptype(type, name)
224244

225245
Set the compression type and description. At the moment, only compression type
226246
``NONE`` is supported, meaning no compression.
227247

228248

249+
.. method:: getcomptype()
250+
251+
Return the compression type (``'NONE'``).
252+
253+
254+
.. method:: getcompname()
255+
256+
Return the human-readable compression type name.
257+
258+
229259
.. method:: setparams(tuple)
230260

231261
The *tuple* should be ``(nchannels, sampwidth, framerate, nframes, comptype,
232262
compname)``, with values valid for the ``set*()`` methods. Sets all
233263
parameters.
234264

235265

266+
.. method:: getparams()
267+
268+
Return a :func:`~collections.namedtuple`
269+
``(nchannels, sampwidth, framerate, nframes, comptype, compname)``
270+
containing the current output parameters.
271+
272+
236273
.. method:: tell()
237274

238275
Return current position in the file, with the same disclaimer for the

pr-preview/pr-1211/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ <h3>導航</h3>
356356
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
357357
<br>
358358
<br>
359-
最後更新於 3月 03, 2026 (00:26 UTC)。
359+
最後更新於 3月 04, 2026 (00:25 UTC)。
360360

361361
<a href="/bugs.html">發現 bug</a>
362362

pr-preview/pr-1211/bugs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ <h2>說明文件的錯誤<a class="headerlink" href="#documentation-bugs" title=
250250
</section>
251251
<section id="getting-started-contributing-to-python-yourself">
252252
<span id="contributing-to-python"></span><h2>開始讓自己貢獻 Python<a class="headerlink" href="#getting-started-contributing-to-python-yourself" title="連結到這個標頭"></a></h2>
253-
<p>除了只是回報你所發現的錯誤之外,同樣也歡迎你提交修正它們的修補程式 (patch)。你可以在 <a class="reference external" href="https://mail.python.org/mailman3/lists/core-mentorship.python.org/">Python 開發者指南</a>中找到如何開始修補 Python 的更多資訊。如果你有任何問題,<a class="reference external" href="https://devguide.python.org/">核心導師郵寄清單</a>是一個友善的地方,你可以在那裡得到,關於 Python 修正錯誤的過程中,所有問題的答案。</p>
253+
<p>除了只是回報你所發現的錯誤之外,同樣也歡迎你提交修正它們的修補程式 (patch)。你可以在 <a class="reference external" href="https://devguide.python.org/">Python 開發者指南</a>中找到如何開始修補 Python 的更多資訊。如果你有任何問題,<a class="reference external" href="https://mail.python.org/mailman3/lists/core-mentorship.python.org/">核心導師郵寄清單</a>是一個友善的地方,你可以在那裡得到,關於 Python 修正錯誤的過程中,所有問題的答案。</p>
254254
</section>
255255
</section>
256256

@@ -393,7 +393,7 @@ <h3>導航</h3>
393393
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
394394
<br>
395395
<br>
396-
最後更新於 3月 03, 2026 (00:26 UTC)。
396+
最後更新於 3月 04, 2026 (00:25 UTC)。
397397

398398
<a href="/bugs.html">發現 bug</a>
399399

pr-preview/pr-1211/c-api/abstract.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ <h3>導航</h3>
365365
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
366366
<br>
367367
<br>
368-
最後更新於 3月 03, 2026 (00:26 UTC)。
368+
最後更新於 3月 04, 2026 (00:25 UTC)。
369369

370370
<a href="/bugs.html">發現 bug</a>
371371

pr-preview/pr-1211/c-api/allocation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ <h3>導航</h3>
574574
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
575575
<br>
576576
<br>
577-
最後更新於 3月 03, 2026 (00:26 UTC)。
577+
最後更新於 3月 04, 2026 (00:25 UTC)。
578578

579579
<a href="/bugs.html">發現 bug</a>
580580

pr-preview/pr-1211/c-api/apiabiversion.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ <h3>導航</h3>
514514
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
515515
<br>
516516
<br>
517-
最後更新於 3月 03, 2026 (00:26 UTC)。
517+
最後更新於 3月 04, 2026 (00:25 UTC)。
518518

519519
<a href="/bugs.html">發現 bug</a>
520520

pr-preview/pr-1211/c-api/arg.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ <h3>導航</h3>
996996
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
997997
<br>
998998
<br>
999-
最後更新於 3月 03, 2026 (00:26 UTC)。
999+
最後更新於 3月 04, 2026 (00:25 UTC)。
10001000

10011001
<a href="/bugs.html">發現 bug</a>
10021002

pr-preview/pr-1211/c-api/bool.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ <h3>導航</h3>
376376
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
377377
<br>
378378
<br>
379-
最後更新於 3月 03, 2026 (00:26 UTC)。
379+
最後更新於 3月 04, 2026 (00:25 UTC)。
380380

381381
<a href="/bugs.html">發現 bug</a>
382382

0 commit comments

Comments
 (0)