Skip to content

Commit c894522

Browse files
Deploy preview for PR 1226 🛫
1 parent 71b4495 commit c894522

583 files changed

Lines changed: 6010 additions & 6010 deletions

File tree

Some content is hidden

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

pr-preview/pr-1226/_sources/tutorial/stdlib2.rst.txt

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _tut-brieftourtwo:
22

33
**********************************************
4-
Brief Tour of the Standard Library --- Part II
4+
Brief tour of the standard library --- part II
55
**********************************************
66

77
This second tour covers more advanced modules that support professional
@@ -10,7 +10,7 @@ programming needs. These modules rarely occur in small scripts.
1010

1111
.. _tut-output-formatting:
1212

13-
Output Formatting
13+
Output formatting
1414
=================
1515

1616
The :mod:`reprlib` module provides a version of :func:`repr` customized for
@@ -130,7 +130,7 @@ templates for XML files, plain text reports, and HTML web reports.
130130

131131
.. _tut-binary-formats:
132132

133-
Working with Binary Data Record Layouts
133+
Working with binary data record layouts
134134
=======================================
135135

136136
The :mod:`struct` module provides :func:`~struct.pack` and
@@ -178,14 +178,13 @@ tasks in background while the main program continues to run::
178178

179179
class AsyncZip(threading.Thread):
180180
def __init__(self, infile, outfile):
181-
threading.Thread.__init__(self)
181+
super().__init__()
182182
self.infile = infile
183183
self.outfile = outfile
184184

185185
def run(self):
186-
f = zipfile.ZipFile(self.outfile, 'w', zipfile.ZIP_DEFLATED)
187-
f.write(self.infile)
188-
f.close()
186+
with zipfile.ZipFile(self.outfile, 'w', zipfile.ZIP_DEFLATED) as f:
187+
f.write(self.infile)
189188
print('Finished background zip of:', self.infile)
190189

191190
background = AsyncZip('mydata.txt', 'myarchive.zip')
@@ -245,7 +244,7 @@ application.
245244

246245
.. _tut-weak-references:
247246

248-
Weak References
247+
Weak references
249248
===============
250249

251250
Python does automatic memory management (reference counting for most objects and
@@ -286,7 +285,7 @@ applications include caching objects that are expensive to create::
286285

287286
.. _tut-list-tools:
288287

289-
Tools for Working with Lists
288+
Tools for working with lists
290289
============================
291290

292291
Many data structure needs can be met with the built-in list type. However,
@@ -352,7 +351,7 @@ not want to run a full list sort::
352351

353352
.. _tut-decimal-fp:
354353

355-
Decimal Floating-Point Arithmetic
354+
Decimal floating-point arithmetic
356355
=================================
357356

358357
The :mod:`decimal` module offers a :class:`~decimal.Decimal` datatype for

pr-preview/pr-1226/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-
最後更新於 4月 28, 2026 (00:37 UTC)。
359+
最後更新於 4月 29, 2026 (00:39 UTC)。
360360

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

pr-preview/pr-1226/bugs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ <h3>導航</h3>
393393
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
394394
<br>
395395
<br>
396-
最後更新於 4月 28, 2026 (00:37 UTC)。
396+
最後更新於 4月 29, 2026 (00:39 UTC)。
397397

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

pr-preview/pr-1226/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-
最後更新於 4月 28, 2026 (00:37 UTC)。
368+
最後更新於 4月 29, 2026 (00:39 UTC)。
369369

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ <h3>導航</h3>
577577
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
578578
<br>
579579
<br>
580-
最後更新於 4月 28, 2026 (00:37 UTC)。
580+
最後更新於 4月 29, 2026 (00:39 UTC)。
581581

582582
<a href="/bugs.html">發現 bug</a>
583583

pr-preview/pr-1226/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-
最後更新於 4月 28, 2026 (00:37 UTC)。
517+
最後更新於 4月 29, 2026 (00:39 UTC)。
518518

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

pr-preview/pr-1226/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-
最後更新於 4月 28, 2026 (00:37 UTC)。
999+
最後更新於 4月 29, 2026 (00:39 UTC)。
10001000

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

pr-preview/pr-1226/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-
最後更新於 4月 28, 2026 (00:37 UTC)。
379+
最後更新於 4月 29, 2026 (00:39 UTC)。
380380

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

pr-preview/pr-1226/c-api/buffer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,7 +1064,7 @@ <h3>導航</h3>
10641064
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
10651065
<br>
10661066
<br>
1067-
最後更新於 4月 28, 2026 (00:37 UTC)。
1067+
最後更新於 4月 29, 2026 (00:39 UTC)。
10681068

10691069
<a href="/bugs.html">發現 bug</a>
10701070

pr-preview/pr-1226/c-api/bytearray.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ <h3>導航</h3>
457457
<a href="https://www.python.org/psf/donations/">敬請捐贈。</a>
458458
<br>
459459
<br>
460-
最後更新於 4月 28, 2026 (00:37 UTC)。
460+
最後更新於 4月 29, 2026 (00:39 UTC)。
461461

462462
<a href="/bugs.html">發現 bug</a>
463463

0 commit comments

Comments
 (0)