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

Skip to content

Commit 519b8d5

Browse files
committed
Deploying to gh-pages from @ 777558d 🚀
1 parent bbf95ad commit 519b8d5

File tree

532 files changed

+637
-560
lines changed

Some content is hidden

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

532 files changed

+637
-560
lines changed

.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 3a2f0796ccfa88958b5811059db53f09
3+
config: 106f195981453e29bee0878755abb3cc
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

_sources/library/gzip.rst.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,9 @@ The module defines the following items:
194194
.. versionchanged:: 3.11
195195
Speed is improved by compressing all data at once instead of in a
196196
streamed fashion. Calls with *mtime* set to ``0`` are delegated to
197-
:func:`zlib.compress` for better speed.
197+
:func:`zlib.compress` for better speed. In this situation the
198+
output may contain a gzip header "OS" byte value other than 255
199+
"unknown" as supplied by the underlying zlib implementation.
198200

199201
.. function:: decompress(data)
200202

_sources/library/smtplib.rst.txt

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -556,34 +556,33 @@ This example prompts the user for addresses needed in the message envelope ('To'
556556
and 'From' addresses), and the message to be delivered. Note that the headers
557557
to be included with the message must be included in the message as entered; this
558558
example doesn't do any processing of the :rfc:`822` headers. In particular, the
559-
'To' and 'From' addresses must be included in the message headers explicitly. ::
559+
'To' and 'From' addresses must be included in the message headers explicitly::
560560

561561
import smtplib
562562

563-
def prompt(prompt):
564-
return input(prompt).strip()
563+
def prompt(title):
564+
return input(title).strip()
565565

566-
fromaddr = prompt("From: ")
567-
toaddrs = prompt("To: ").split()
566+
from_addr = prompt("From: ")
567+
to_addrs = prompt("To: ").split()
568568
print("Enter message, end with ^D (Unix) or ^Z (Windows):")
569569

570570
# Add the From: and To: headers at the start!
571-
msg = ("From: %s\r\nTo: %s\r\n\r\n"
572-
% (fromaddr, ", ".join(toaddrs)))
571+
lines = [f"From: {from_addr}", f"To: {', '.join(to_addrs)}", ""]
573572
while True:
574573
try:
575574
line = input()
576575
except EOFError:
577576
break
578-
if not line:
579-
break
580-
msg = msg + line
577+
else:
578+
lines.append(line)
581579

580+
msg = "\r\n".join(lines)
582581
print("Message length is", len(msg))
583582

584-
server = smtplib.SMTP('localhost')
583+
server = smtplib.SMTP("localhost")
585584
server.set_debuglevel(1)
586-
server.sendmail(fromaddr, toaddrs, msg)
585+
server.sendmail(from_addr, to_addrs, msg)
587586
server.quit()
588587

589588
.. note::

_sources/whatsnew/3.11.rst.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,21 @@ functools
768768
(Contributed by Yurii Karabas in :issue:`46014`.)
769769

770770

771+
.. _whatsnew311-gzip:
772+
773+
gzip
774+
----
775+
776+
* The :func:`gzip.compress` function is now faster when used with the
777+
**mtime=0** argument as it delegates the compression entirely to a single
778+
:func:`zlib.compress` operation. There is one side effect of this change: The
779+
gzip file header contains an "OS" byte in its header. That was traditionally
780+
always set to a value of 255 representing "unknown" by the :mod:`gzip`
781+
module. Now, when using :func:`~gzip.compress` with **mtime=0**, it may be
782+
set to a different value by the underlying zlib C library Python was linked
783+
against.
784+
(See :gh:`112346` for details on the side effect.)
785+
771786
.. _whatsnew311-hashlib:
772787

773788
hashlib

about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ <h3>瀏覽</h3>
319319
<a href="https://www.python.org/psf/donations/">Please donate.</a>
320320
<br />
321321
<br />
322-
最後更新於 Jun 17, 2024 (05:43 UTC)。
322+
最後更新於 Jun 19, 2024 (18:25 UTC)。
323323

324324
<a href="/bugs.html">Found a bug</a>?
325325

bugs.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ <h2>說明文件的錯誤<a class="headerlink" href="#documentation-bugs" title=
230230
</section>
231231
<section id="getting-started-contributing-to-python-yourself">
232232
<span id="contributing-to-python"></span><h2>開始讓自己貢獻 Python<a class="headerlink" href="#getting-started-contributing-to-python-yourself" title="連結到這個標頭"></a></h2>
233-
<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>
233+
<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>
234234
</section>
235235
</section>
236236

@@ -358,7 +358,7 @@ <h3>瀏覽</h3>
358358
<a href="https://www.python.org/psf/donations/">Please donate.</a>
359359
<br />
360360
<br />
361-
最後更新於 Jun 17, 2024 (05:43 UTC)。
361+
最後更新於 Jun 19, 2024 (18:25 UTC)。
362362

363363
<a href="/bugs.html">Found a bug</a>?
364364

c-api/abstract.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ <h3>瀏覽</h3>
329329
<a href="https://www.python.org/psf/donations/">Please donate.</a>
330330
<br />
331331
<br />
332-
最後更新於 Jun 17, 2024 (05:43 UTC)。
332+
最後更新於 Jun 19, 2024 (18:25 UTC)。
333333

334334
<a href="/bugs.html">Found a bug</a>?
335335

c-api/allocation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ <h3>瀏覽</h3>
343343
<a href="https://www.python.org/psf/donations/">Please donate.</a>
344344
<br />
345345
<br />
346-
最後更新於 Jun 17, 2024 (05:43 UTC)。
346+
最後更新於 Jun 19, 2024 (18:25 UTC)。
347347

348348
<a href="/bugs.html">Found a bug</a>?
349349

c-api/apiabiversion.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ <h3>瀏覽</h3>
375375
<a href="https://www.python.org/psf/donations/">Please donate.</a>
376376
<br />
377377
<br />
378-
最後更新於 Jun 17, 2024 (05:43 UTC)。
378+
最後更新於 Jun 19, 2024 (18:25 UTC)。
379379

380380
<a href="/bugs.html">Found a bug</a>?
381381

c-api/arg.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ <h3>瀏覽</h3>
886886
<a href="https://www.python.org/psf/donations/">Please donate.</a>
887887
<br />
888888
<br />
889-
最後更新於 Jun 17, 2024 (05:43 UTC)。
889+
最後更新於 Jun 19, 2024 (18:25 UTC)。
890890

891891
<a href="/bugs.html">Found a bug</a>?
892892

c-api/bool.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ <h3>瀏覽</h3>
340340
<a href="https://www.python.org/psf/donations/">Please donate.</a>
341341
<br />
342342
<br />
343-
最後更新於 Jun 17, 2024 (05:43 UTC)。
343+
最後更新於 Jun 19, 2024 (18:25 UTC)。
344344

345345
<a href="/bugs.html">Found a bug</a>?
346346

c-api/buffer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ <h3>瀏覽</h3>
10131013
<a href="https://www.python.org/psf/donations/">Please donate.</a>
10141014
<br />
10151015
<br />
1016-
最後更新於 Jun 17, 2024 (05:43 UTC)。
1016+
最後更新於 Jun 19, 2024 (18:25 UTC)。
10171017

10181018
<a href="/bugs.html">Found a bug</a>?
10191019

c-api/bytearray.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ <h3>瀏覽</h3>
396396
<a href="https://www.python.org/psf/donations/">Please donate.</a>
397397
<br />
398398
<br />
399-
最後更新於 Jun 17, 2024 (05:43 UTC)。
399+
最後更新於 Jun 19, 2024 (18:25 UTC)。
400400

401401
<a href="/bugs.html">Found a bug</a>?
402402

c-api/bytes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ <h3>瀏覽</h3>
520520
<a href="https://www.python.org/psf/donations/">Please donate.</a>
521521
<br />
522522
<br />
523-
最後更新於 Jun 17, 2024 (05:43 UTC)。
523+
最後更新於 Jun 19, 2024 (18:25 UTC)。
524524

525525
<a href="/bugs.html">Found a bug</a>?
526526

c-api/call.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ <h3>瀏覽</h3>
655655
<a href="https://www.python.org/psf/donations/">Please donate.</a>
656656
<br />
657657
<br />
658-
最後更新於 Jun 17, 2024 (05:43 UTC)。
658+
最後更新於 Jun 19, 2024 (18:25 UTC)。
659659

660660
<a href="/bugs.html">Found a bug</a>?
661661

c-api/capsule.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ <h3>瀏覽</h3>
440440
<a href="https://www.python.org/psf/donations/">Please donate.</a>
441441
<br />
442442
<br />
443-
最後更新於 Jun 17, 2024 (05:43 UTC)。
443+
最後更新於 Jun 19, 2024 (18:25 UTC)。
444444

445445
<a href="/bugs.html">Found a bug</a>?
446446

c-api/cell.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ <h3>瀏覽</h3>
339339
<a href="https://www.python.org/psf/donations/">Please donate.</a>
340340
<br />
341341
<br />
342-
最後更新於 Jun 17, 2024 (05:43 UTC)。
342+
最後更新於 Jun 19, 2024 (18:25 UTC)。
343343

344344
<a href="/bugs.html">Found a bug</a>?
345345

c-api/code.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ <h3>瀏覽</h3>
595595
<a href="https://www.python.org/psf/donations/">Please donate.</a>
596596
<br />
597597
<br />
598-
最後更新於 Jun 17, 2024 (05:43 UTC)。
598+
最後更新於 Jun 19, 2024 (18:25 UTC)。
599599

600600
<a href="/bugs.html">Found a bug</a>?
601601

c-api/codec.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ <h3>瀏覽</h3>
444444
<a href="https://www.python.org/psf/donations/">Please donate.</a>
445445
<br />
446446
<br />
447-
最後更新於 Jun 17, 2024 (05:43 UTC)。
447+
最後更新於 Jun 19, 2024 (18:25 UTC)。
448448

449449
<a href="/bugs.html">Found a bug</a>?
450450

c-api/complex.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ <h3>瀏覽</h3>
428428
<a href="https://www.python.org/psf/donations/">Please donate.</a>
429429
<br />
430430
<br />
431-
最後更新於 Jun 17, 2024 (05:43 UTC)。
431+
最後更新於 Jun 19, 2024 (18:25 UTC)。
432432

433433
<a href="/bugs.html">Found a bug</a>?
434434

c-api/concrete.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ <h3>瀏覽</h3>
463463
<a href="https://www.python.org/psf/donations/">Please donate.</a>
464464
<br />
465465
<br />
466-
最後更新於 Jun 17, 2024 (05:43 UTC)。
466+
最後更新於 Jun 19, 2024 (18:25 UTC)。
467467

468468
<a href="/bugs.html">Found a bug</a>?
469469

c-api/contextvars.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ <h3>瀏覽</h3>
450450
<a href="https://www.python.org/psf/donations/">Please donate.</a>
451451
<br />
452452
<br />
453-
最後更新於 Jun 17, 2024 (05:43 UTC)。
453+
最後更新於 Jun 19, 2024 (18:25 UTC)。
454454

455455
<a href="/bugs.html">Found a bug</a>?
456456

c-api/conversion.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ <h3>瀏覽</h3>
389389
<a href="https://www.python.org/psf/donations/">Please donate.</a>
390390
<br />
391391
<br />
392-
最後更新於 Jun 17, 2024 (05:43 UTC)。
392+
最後更新於 Jun 19, 2024 (18:25 UTC)。
393393

394394
<a href="/bugs.html">Found a bug</a>?
395395

c-api/coro.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ <h3>瀏覽</h3>
318318
<a href="https://www.python.org/psf/donations/">Please donate.</a>
319319
<br />
320320
<br />
321-
最後更新於 Jun 17, 2024 (05:43 UTC)。
321+
最後更新於 Jun 19, 2024 (18:25 UTC)。
322322

323323
<a href="/bugs.html">Found a bug</a>?
324324

c-api/datetime.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ <h3>瀏覽</h3>
629629
<a href="https://www.python.org/psf/donations/">Please donate.</a>
630630
<br />
631631
<br />
632-
最後更新於 Jun 17, 2024 (05:43 UTC)。
632+
最後更新於 Jun 19, 2024 (18:25 UTC)。
633633

634634
<a href="/bugs.html">Found a bug</a>?
635635

c-api/descriptor.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ <h3>瀏覽</h3>
333333
<a href="https://www.python.org/psf/donations/">Please donate.</a>
334334
<br />
335335
<br />
336-
最後更新於 Jun 17, 2024 (05:43 UTC)。
336+
最後更新於 Jun 19, 2024 (18:25 UTC)。
337337

338338
<a href="/bugs.html">Found a bug</a>?
339339

c-api/dict.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ <h3>瀏覽</h3>
642642
<a href="https://www.python.org/psf/donations/">Please donate.</a>
643643
<br />
644644
<br />
645-
最後更新於 Jun 17, 2024 (05:43 UTC)。
645+
最後更新於 Jun 19, 2024 (18:25 UTC)。
646646

647647
<a href="/bugs.html">Found a bug</a>?
648648

c-api/exceptions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,7 @@ <h3>瀏覽</h3>
16891689
<a href="https://www.python.org/psf/donations/">Please donate.</a>
16901690
<br />
16911691
<br />
1692-
最後更新於 Jun 17, 2024 (05:43 UTC)。
1692+
最後更新於 Jun 19, 2024 (18:25 UTC)。
16931693

16941694
<a href="/bugs.html">Found a bug</a>?
16951695

c-api/file.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/">Please donate.</a>
366366
<br />
367367
<br />
368-
最後更新於 Jun 17, 2024 (05:43 UTC)。
368+
最後更新於 Jun 19, 2024 (18:25 UTC)。
369369

370370
<a href="/bugs.html">Found a bug</a>?
371371

c-api/float.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ <h3>瀏覽</h3>
488488
<a href="https://www.python.org/psf/donations/">Please donate.</a>
489489
<br />
490490
<br />
491-
最後更新於 Jun 17, 2024 (05:43 UTC)。
491+
最後更新於 Jun 19, 2024 (18:25 UTC)。
492492

493493
<a href="/bugs.html">Found a bug</a>?
494494

c-api/frame.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ <h3>瀏覽</h3>
499499
<a href="https://www.python.org/psf/donations/">Please donate.</a>
500500
<br />
501501
<br />
502-
最後更新於 Jun 17, 2024 (05:43 UTC)。
502+
最後更新於 Jun 19, 2024 (18:25 UTC)。
503503

504504
<a href="/bugs.html">Found a bug</a>?
505505

c-api/function.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ <h3>瀏覽</h3>
467467
<a href="https://www.python.org/psf/donations/">Please donate.</a>
468468
<br />
469469
<br />
470-
最後更新於 Jun 17, 2024 (05:43 UTC)。
470+
最後更新於 Jun 19, 2024 (18:25 UTC)。
471471

472472
<a href="/bugs.html">Found a bug</a>?
473473

c-api/gcsupport.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ <h3>瀏覽</h3>
610610
<a href="https://www.python.org/psf/donations/">Please donate.</a>
611611
<br />
612612
<br />
613-
最後更新於 Jun 17, 2024 (05:43 UTC)。
613+
最後更新於 Jun 19, 2024 (18:25 UTC)。
614614

615615
<a href="/bugs.html">Found a bug</a>?
616616

c-api/gen.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ <h3>瀏覽</h3>
327327
<a href="https://www.python.org/psf/donations/">Please donate.</a>
328328
<br />
329329
<br />
330-
最後更新於 Jun 17, 2024 (05:43 UTC)。
330+
最後更新於 Jun 19, 2024 (18:25 UTC)。
331331

332332
<a href="/bugs.html">Found a bug</a>?
333333

c-api/hash.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ <h3>瀏覽</h3>
349349
<a href="https://www.python.org/psf/donations/">Please donate.</a>
350350
<br />
351351
<br />
352-
最後更新於 Jun 17, 2024 (05:43 UTC)。
352+
最後更新於 Jun 19, 2024 (18:25 UTC)。
353353

354354
<a href="/bugs.html">Found a bug</a>?
355355

c-api/import.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ <h3>瀏覽</h3>
618618
<a href="https://www.python.org/psf/donations/">Please donate.</a>
619619
<br />
620620
<br />
621-
最後更新於 Jun 17, 2024 (05:43 UTC)。
621+
最後更新於 Jun 19, 2024 (18:25 UTC)。
622622

623623
<a href="/bugs.html">Found a bug</a>?
624624

c-api/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ <h3>瀏覽</h3>
416416
<a href="https://www.python.org/psf/donations/">Please donate.</a>
417417
<br />
418418
<br />
419-
最後更新於 Jun 17, 2024 (05:43 UTC)。
419+
最後更新於 Jun 19, 2024 (18:25 UTC)。
420420

421421
<a href="/bugs.html">Found a bug</a>?
422422

c-api/init.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2474,7 +2474,7 @@ <h3>瀏覽</h3>
24742474
<a href="https://www.python.org/psf/donations/">Please donate.</a>
24752475
<br />
24762476
<br />
2477-
最後更新於 Jun 17, 2024 (05:43 UTC)。
2477+
最後更新於 Jun 19, 2024 (18:25 UTC)。
24782478

24792479
<a href="/bugs.html">Found a bug</a>?
24802480

0 commit comments

Comments
 (0)