Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
87f853f
Default second argument of LoggerAdapter.__init__ to None
arturoescaip May 15, 2020
63fcc36
📜🤖 Added by blurb_it.
blurb-it[bot] May 24, 2020
334b3a1
Trivial typo fix in _tkinter.c (GH-19622)
AndrewGYork May 15, 2020
40ec748
bpo-40055: test_distutils leaves warnings filters unchanged (GH-20095)
vstinner May 15, 2020
985fcc6
bpo-40479: Fix hashlib issue with OpenSSL 3.0.0 (GH-20107)
tiran May 15, 2020
ae80c56
bpo-40479: Test with latest OpenSSL versions (GH-20108)
tiran May 15, 2020
aea7052
bpo-40515: Require OPENSSL_THREADS (GH-19953)
tiran May 15, 2020
517d8b1
bpo-40607: Reraise exception during task cancelation in asyncio.wait_…
romasku May 15, 2020
4d761e5
bpo-40163: Fix multissltest download of old OpenSSL (GH-19329)
tiran May 15, 2020
9e75a3c
bpo-40636: Clarify the zip built-in docstring. (GH-20118)
gpshead May 15, 2020
7b423b4
bpo-40445: Update compileall.compile_dir docs (GH-19806)
hauntsaninja May 15, 2020
1d57146
bpo-40637: Add option to disable builtin hashes (GH-20121)
tiran May 15, 2020
9b6f4c1
Add Andrew York to ACKS for GH-19622. (GH-20105)
cjerdonek May 15, 2020
7654bbb
bpo-31033: Add a msg argument to Future.cancel() and Task.cancel() (G…
cjerdonek May 15, 2020
00a75c1
bpo-39075: types.SimpleNamespace no longer sorts attributes in its re…
ZackerySpytz May 16, 2020
66ba9fc
bpo-40457: Support OpenSSL without TLS 1.0/1.1 (GH-19862)
tiran May 16, 2020
37043fe
bpo-40503: PEP 615: Tests and implementation for zoneinfo (GH-19909)
pganssle May 16, 2020
36a4da0
bpo-40192: Use thread_cputime for time.thread_time to improve resolut…
isidentical May 16, 2020
b72ef1c
bpo-40275: lazy import modules in test.support (GH-20128)
shihai1991 May 16, 2020
babe102
bpo-39305: Update nntplib to merge nntplib.NNTP and nntplib._NNTPBase…
corona10 May 16, 2020
05c288d
bpo-24416: Return named tuple from date.isocalendar() (GH-20113)
pganssle May 16, 2020
8fe1f73
bpo-40503: Add documentation and what's new entry for zoneinfo (GH-20…
pganssle May 16, 2020
1fffa9e
bpo-37630: Use SHA3 and SHAKE XOF from OpenSSL (GH-16049)
tiran May 16, 2020
2dfd17c
bpo-38870: Do not separate factor prefixes in ast.unparse (GH-20133)
isidentical May 16, 2020
c41b407
bpo-38870: Don't put unnecessary parentheses on class declarations in…
isidentical May 16, 2020
febffd4
bpo-39740: Early declare devpoll_methods to support old compilers (GH…
isidentical May 16, 2020
da20f99
bpo-40211: Clarify os.preadv and os.pwritev are supported on AIX 7.1+…
isidentical May 16, 2020
c3c90cb
bpo-40165: Suppress stderr when checking if test_stty_match should be…
isidentical May 16, 2020
79e663f
bpo-38870: Correctly handle empty docstrings in ast.unparse (GH-18768)
isidentical May 16, 2020
7185cb2
bpo-38870: Implement round tripping support for typed AST in ast.unpa…
isidentical May 16, 2020
23520b2
bpo-40645: Deprecated internal details of hmac.HMAC (GH-20132)
tiran May 16, 2020
efbf13b
Use subTest in test_exceptions for better error reporting (GH-20140)
pablogsal May 17, 2020
fcf48fc
bpo-38870: Use subTest in test_unparse for better error reporting (GH…
pablogsal May 17, 2020
f79489e
bpo-40334: Improvements to error-handling code in the PEG parser (GH-…
lysnikolaou May 17, 2020
c20bb44
bpo-29587: Add another test for the gen.throw() fix. (GH-19859)
cjerdonek May 17, 2020
3d848d3
bpo-35569: Expose RFC 3542 IPv6 socket options on macOS (GH-19526)
May 17, 2020
d5fc092
bpo-35569: add Erlend to Misc/ACKS (GH-20146)
ned-deily May 17, 2020
d17c688
bpo-39976: Add **other_popen_kwargs to subprocess docs (GH-20145)
ZackerySpytz May 17, 2020
7c92cb3
bpo-40645: Implement HMAC in C (GH-20129)
tiran May 17, 2020
8fb0858
bpo-37630: Fix spelling shake128 -> shake_128 (GH-20154)
tiran May 17, 2020
c601f85
Doc: move a dot outside double quotes (GH-20007)
May 17, 2020
63094a9
Doc: change 'Posix' for 'POSIX' (GH-20001)
May 17, 2020
ac09bd8
bpo-39705 : sorted() tutorial example under looping techniques improv…
kumiDa May 18, 2020
54a6060
bpo-39058: Preserve attribute order in argparse Namespace reprs. (GH…
rhettinger May 18, 2020
8f78520
bpo-40536: Add zoneinfo.available_timezones (GH-20158)
pganssle May 18, 2020
81fb1c4
bpo-40665: Use Argument Clinic for the bisect module (GH-20163)
hauntsaninja May 18, 2020
5803bdf
bpo-40651: Improve LRU recipe in the OrderedDict documentation (GH-#…
qudongfang May 18, 2020
af35c9f
bpo-13601: Mention stderr's line buffering in What's New (GH-20168)
hauntsaninja May 18, 2020
fb4f9d2
bpo-31033: Improve the traceback for cancelled asyncio tasks (GH-19951)
cjerdonek May 18, 2020
a3253c3
bpo-39148: enable ipv6 for datagrams in Proactor (GH-19121)
afflux May 18, 2020
3ac0c40
bpo-39148: fixup to account for IPV6_ENABLED being moved (GH-20170)
njsmith May 18, 2020
3adee24
bpo-34956: Fix macOS _tkinter use of Tcl/Tk in /Library/Frameworks (G…
ned-deily May 18, 2020
f27dc75
bpo-40548: Github Actions: update actions/checkout to v2 (GH-20164)
FFY00 May 18, 2020
d7855c8
bpo-26317: Support OBJC and OBJCXX configure command line variables (…
ned-deily May 18, 2020
22b44f5
bpo-38112: Document that compileall.compile_[dir,file] also accept mu…
frenzymadness May 18, 2020
4c8bfa1
Revert "bpo-26317: Support OBJC and OBJCXX configure command line var…
ned-deily May 18, 2020
aee42b8
bpo-40653: Move _dirnameW out of #ifdef HAVE_SYMLINK/#endif (GH-20144)
gongminmin May 18, 2020
2421ae7
bpo-40650: Include winsock2.h in pytime.c, instead of a full windows.…
gongminmin May 18, 2020
d426d12
bpo-35890: Use RegQueryInfoKeyW and CryptAcquireContextW explicitly (…
gongminmin May 18, 2020
94e6283
bpo-40257: Revert changes to inspect.getdoc() (GH-20073)
serhiy-storchaka May 18, 2020
2d6bc90
bpo-40661: Fix segfault when parsing invalid input (GH-20165)
lysnikolaou May 18, 2020
c6d6c07
bpo-40528: Improve AST generation script to do builds simultaneously …
isidentical May 18, 2020
9031f9b
bpo-40662: Fixed ast.get_source_segment for ast nodes that have incom…
iritkatriel May 18, 2020
b7955e6
bpo-40663: Correctly handle annotations with subscripts in ast_unpars…
isidentical May 18, 2020
1ca499e
bpo-40669: Install PEG benchmarking dependencies in a venv (GH-20183)
lysnikolaou May 18, 2020
58098e2
bpo-38870: correctly escape unprintable characters on ast.unparse (GH…
i64 May 18, 2020
d818a42
bpo-40334: Reproduce error message for type comments on bare '*' in t…
lysnikolaou May 18, 2020
a944a59
bpo-38870: Don't omit parenthesis when unparsing a slice in ast.unparse
isidentical May 18, 2020
fae1ead
Regenerate the parser (#20195)
pablogsal May 18, 2020
897a4d2
bpo-40275: More lazy imports in test.support (GH-20131)
shihai1991 May 18, 2020
a5ee319
Use _PyErr_ChainStackItem() inside gen_send_ex(). (GH-20173)
cjerdonek May 18, 2020
aeab26a
bpo-40669: Use requirements.pip when installing PEG dependencies (GH-…
pablogsal May 18, 2020
af3ee9d
Fix code-block in zoneinfo (GH-20201)
asottile May 19, 2020
5254f41
Python 3.10.0a0 (GH-20198)
pablogsal May 19, 2020
5946f7b
bpo-32309: Implement asyncio.to_thread() (GH-20143)
aeros May 19, 2020
31174ae
Consolidate 3.9.0b1 NEWS in the master branch
ambv May 19, 2020
a6cc26a
3.10 whatsnew needs to use blurb-produced changelog (GH-20213)
ned-deily May 19, 2020
2e20d03
bpo-39631: Fix file association MIME type in the Windows installer (G…
ZackerySpytz May 19, 2020
b6f07fe
bpo-40677: Define IO_REPARSE_TAG_APPEXECLINK explicitly (GH-20206)
gongminmin May 19, 2020
0db2ede
Doc: Python 3.10 in sidebar and version switcher. (GH-20209)
JulienPalard May 19, 2020
dfb8381
Fix typo in multiprocessing documentation (GH-20016)
JrGoodle May 19, 2020
b914691
bpo-40683: Add zoneinfo to LIBSUBDIRS (#20229)
pganssle May 19, 2020
d84ad90
bpo-37616: Handle version information more gracefully in getpath.c (G…
pablogsal May 19, 2020
b24beae
Enable GitHub Actions for 3.9 branch (GH-20231)
hugovk May 19, 2020
2789986
bpo-32604: PEP 554 for use in test suite (GH-19985)
nanjekyejoannah May 19, 2020
ca18ce6
bpo-39631: Adds NEWS entry (GH-20227)
zooba May 19, 2020
e470be9
bpo-38870: invalid escape sequence (GH-20240)
isidentical May 19, 2020
437b893
bpo-40645: restrict HMAC key len to INT_MAX (GH-20238)
tiran May 19, 2020
1943ab0
bpo-40521: Fix update_slot() when INTERN_NAME_STRINGS is not defined …
vstinner May 19, 2020
cc99716
bpo-40291: Mention socket.CAN_J1939 in What's New (GH-20248)
karlding May 20, 2020
a32fd6b
Fix the URL to fishshell.com (GH-20251)
jcgoble3 May 20, 2020
b287635
bpo-34956: edit and format better NEWS item in 3.9.0b1 changelog (GH-…
ned-deily May 20, 2020
0e4302a
bpo-40698: Improve distutils upload hash digests (GH-20260)
tiran May 20, 2020
718b2e0
Use v2 of GitHub Actions where available (GH-20232)
hugovk May 20, 2020
3653b12
s/wakup/wakeup (GH-20250)
kunalb May 20, 2020
d8f6089
Update whatsnew benchmark results for 3.9 (GH-20276)
rhettinger May 21, 2020
45d5b4f
Use f-strings in argparse HOWTO (GH-20070)
May 21, 2020
fbc22f8
bpo-32309: Add support for contextvars in asyncio.to_thread() (GH-20278)
aeros May 21, 2020
4236bbe
Improve output summary in the examples and recipes section (GH-20285)
rhettinger May 21, 2020
ddfb0f2
bpo-40714: Remove compile warning from _zoneinfo.c (GH-20291)
corona10 May 21, 2020
250bdae
bpo-40334: Correctly generate C parser when assigned var is None (GH-…
isidentical May 21, 2020
1c83402
Reword aware/naive introduction sentence (GH-20175)
May 21, 2020
7d18f8f
Fix typing problems reported by mypy in pegen (GH-20297)
pablogsal May 21, 2020
856fe24
bpo-40176: Improve error messages for trailing comma on from import (…
isidentical May 21, 2020
fb81de4
bpo-40715: Reject dict unpacking on dict comprehensions (GH-20292)
isidentical May 21, 2020
2d0359e
[doc] Remove references to obsolete BuildApplet on macOS. (GH-20023)
andresdelfino May 21, 2020
3a887bb
bpo-40334: Produce better error messages for non-parenthesized genexp…
lysnikolaou May 22, 2020
84957f0
Fix debug output in PEG parser generator (GH-20308)
pablogsal May 22, 2020
4b53152
Restore missing column of digits (GH-20313)
rhettinger May 22, 2020
289862b
bpo-40630: Add tracemalloc.reset_peak (GH-20102)
huonw May 22, 2020
73832a6
Let the argument clinic do the type checking for heapq (GH-20284)
rhettinger May 22, 2020
45422ab
bpo-40730: Remove redundant 'to' (GH-20316)
DahlitzFlorian May 22, 2020
9a68354
bpo-40705: Fix use-after-free in _zoneinfo's module_free (GH-20280)
ammaraskar May 22, 2020
3288504
bpo-9216: hashlib usedforsecurity fixes (GH-20258)
tiran May 22, 2020
308c05a
bpo-40696: Fix a hang that can arise after gen.throw() (GH-20287)
cjerdonek May 22, 2020
0d8a592
bpo-40679: Use the function's qualname in certain TypeErrors (GH-20236)
sweeneyde May 22, 2020
0e5bdc3
bpo-40552 Add 'users' variable in code sample (tutorial 4.2). (GH-19992)
awecx May 23, 2020
1978f8f
Cosmetic smtplib changes (GH-8718)
scop May 23, 2020
0a49c72
[doc] Add missing space in urllib.request.rst (GH-19860)
imomaliev May 23, 2020
bd87d36
bpo-40439: Update broken link in lexical analysis docs (GH-20184)
Akarys42 May 23, 2020
8cd7fd6
bpo-34556: Document addition of upgrade_deps to venv.create (GH-20135)
hauntsaninja May 23, 2020
0ea317e
bpo-40405: Fix asyncio.as_completed docs (GH-19753)
bharel May 23, 2020
8a37bc2
Use Py_ssize_t for the column number in the PEG support code (GH-20341)
pablogsal May 24, 2020
f0bddd5
Remove spurious NULL in descrobject.c (GH-20344)
shihai1991 May 24, 2020
c7e9074
bpo-37973: Improve the docstrings of sys.float_info (GH-19218)
ZackerySpytz May 24, 2020
3e1d0ce
bpo-40723: Make IDLE autocomplete test run without __main__.__file__ …
DahlitzFlorian May 24, 2020
7e47504
bpo-37309: Update IDLE NEWS.txt (GH-20356)
terryjreedy May 24, 2020
d07904e
bpo-40443: Remove unused imports in the zoneinfo (GH-20354)
corona10 May 24, 2020
deae79c
Remove empty bpo from news entry
arturoescaip May 24, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ on:
push:
branches:
- master
- 3.9
- 3.8
- 3.7
pull_request:
branches:
- master
- 3.9
- 3.8
- 3.7

Expand All @@ -38,7 +40,7 @@ jobs:
needs: check_source
if: needs.check_source.outputs.run_tests == 'true'
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Build CPython
run: .\PCbuild\build.bat -e -p Win32
- name: Display build info
Expand All @@ -52,7 +54,7 @@ jobs:
needs: check_source
if: needs.check_source.outputs.run_tests == 'true'
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Build CPython
run: .\PCbuild\build.bat -e -p x64
- name: Display build info
Expand All @@ -66,7 +68,7 @@ jobs:
needs: check_source
if: needs.check_source.outputs.run_tests == 'true'
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Configure CPython
run: ./configure --with-pydebug --with-openssl=/usr/local/opt/openssl --prefix=/opt/python-dev
- name: Build CPython
Expand All @@ -84,7 +86,7 @@ jobs:
env:
OPENSSL_VER: 1.1.1f
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Install Dependencies
run: sudo ./.github/workflows/posix-deps-apt.sh
- name: 'Restore OpenSSL build'
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_msi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ on:
push:
branches:
- master
- 3.9
- 3.8
- 3.7
paths:
- 'Tools/msi/**'
pull_request:
branches:
- master
- 3.9
- 3.8
- 3.7
paths:
Expand All @@ -21,14 +23,14 @@ jobs:
name: 'Windows (x86) Installer'
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Build CPython installer
run: .\Tools\msi\build.bat -x86

build_win_amd64:
name: 'Windows (x64) Installer'
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Build CPython installer
run: .\Tools\msi\build.bat -x64
7 changes: 5 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- 3.9
- 3.8
- 3.7
paths-ignore:
Expand All @@ -12,6 +13,7 @@ on:
#pull_request:
# branches:
# - master
# - 3.9
# - 3.8
# - 3.7
# paths-ignore:
Expand All @@ -25,7 +27,7 @@ jobs:
env:
OPENSSL_VER: 1.1.1f
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Install Dependencies
run: sudo ./.github/workflows/posix-deps-apt.sh
- name: 'Restore OpenSSL build'
Expand All @@ -48,6 +50,7 @@ jobs:
./python -m venv .venv
source ./.venv/bin/activate
python -m pip install -U coverage
python -m pip install -r Misc/requirements-test.txt
python -m test.pythoninfo
- name: 'Tests with coverage'
run: >
Expand All @@ -73,7 +76,7 @@ jobs:
name: 'Ubuntu (C Coverage)'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Install Dependencies
run: sudo ./.github/workflows/posix-deps-apt.sh
- name: Configure CPython
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ on:
#push:
# branches:
# - master
# - 3.9
# - 3.8
# - 3.7
# paths:
# - 'Doc/**'
pull_request:
branches:
- master
- 3.9
- 3.8
- 3.7
paths:
Expand All @@ -22,7 +24,7 @@ jobs:
name: 'Docs'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: 'Install Dependencies'
run: sudo ./.github/workflows/posix-deps-apt.sh && sudo apt-get install wamerican
- name: 'Configure CPython'
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ matrix:
# Need a venv that can parse covered code.
- ./python -m venv venv
- ./venv/bin/python -m pip install -U coverage
- ./venv/bin/python -m pip install -r Misc/requirements-test.txt
- ./venv/bin/python -m test.pythoninfo
script:
# Skip tests that re-run the entire test suite.
Expand Down
34 changes: 17 additions & 17 deletions Doc/howto/argparse.rst
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ Our program keeps growing in complexity::
args = parser.parse_args()
answer = args.square**2
if args.verbose:
print("the square of {} equals {}".format(args.square, answer))
print(f"the square of {args.square} equals {answer}")
else:
print(answer)

Expand Down Expand Up @@ -387,9 +387,9 @@ multiple verbosity values, and actually get to use them::
args = parser.parse_args()
answer = args.square**2
if args.verbosity == 2:
print("the square of {} equals {}".format(args.square, answer))
print(f"the square of {args.square} equals {answer}")
elif args.verbosity == 1:
print("{}^2 == {}".format(args.square, answer))
print(f"{args.square}^2 == {answer}")
else:
print(answer)

Expand Down Expand Up @@ -421,9 +421,9 @@ Let's fix it by restricting the values the ``--verbosity`` option can accept::
args = parser.parse_args()
answer = args.square**2
if args.verbosity == 2:
print("the square of {} equals {}".format(args.square, answer))
print(f"the square of {args.square} equals {answer}")
elif args.verbosity == 1:
print("{}^2 == {}".format(args.square, answer))
print(f"{args.square}^2 == {answer}")
else:
print(answer)

Expand Down Expand Up @@ -461,9 +461,9 @@ verbosity argument (check the output of ``python --help``)::
args = parser.parse_args()
answer = args.square**2
if args.verbosity == 2:
print("the square of {} equals {}".format(args.square, answer))
print(f"the square of {args.square} equals {answer}")
elif args.verbosity == 1:
print("{}^2 == {}".format(args.square, answer))
print(f"{args.square}^2 == {answer}")
else:
print(answer)

Expand Down Expand Up @@ -529,9 +529,9 @@ Let's fix::

# bugfix: replace == with >=
if args.verbosity >= 2:
print("the square of {} equals {}".format(args.square, answer))
print(f"the square of {args.square} equals {answer}")
elif args.verbosity >= 1:
print("{}^2 == {}".format(args.square, answer))
print(f"{args.square}^2 == {answer}")
else:
print(answer)

Expand Down Expand Up @@ -566,9 +566,9 @@ Let's fix that bug::
args = parser.parse_args()
answer = args.square**2
if args.verbosity >= 2:
print("the square of {} equals {}".format(args.square, answer))
print(f"the square of {args.square} equals {answer}")
elif args.verbosity >= 1:
print("{}^2 == {}".format(args.square, answer))
print(f"{args.square}^2 == {answer}")
else:
print(answer)

Expand Down Expand Up @@ -606,9 +606,9 @@ not just squares::
args = parser.parse_args()
answer = args.x**args.y
if args.verbosity >= 2:
print("{} to the power {} equals {}".format(args.x, args.y, answer))
print(f"{args.x} to the power {args.y} equals {answer}")
elif args.verbosity >= 1:
print("{}^{} == {}".format(args.x, args.y, answer))
print(f"{args.x}^{args.y} == {answer}")
else:
print(answer)

Expand Down Expand Up @@ -645,9 +645,9 @@ to display *more* text instead::
args = parser.parse_args()
answer = args.x**args.y
if args.verbosity >= 2:
print("Running '{}'".format(__file__))
print(f"Running '{__file__}'")
if args.verbosity >= 1:
print("{}^{} == ".format(args.x, args.y), end="")
print(f"{args.x}^{args.y} == ", end="")
print(answer)

Output:
Expand Down Expand Up @@ -688,9 +688,9 @@ which will be the opposite of the ``--verbose`` one::
if args.quiet:
print(answer)
elif args.verbose:
print("{} to the power {} equals {}".format(args.x, args.y, answer))
print(f"{args.x} to the power {args.y} equals {answer}")
else:
print("{}^{} == {}".format(args.x, args.y, answer))
print(f"{args.x}^{args.y} == {answer}")

Our program is now simpler, and we've lost some functionality for the sake of
demonstration. Anyways, here's the output:
Expand Down
2 changes: 1 addition & 1 deletion Doc/howto/sockets.rst
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ inside-out.

In Python, you use ``socket.setblocking(False)`` to make it non-blocking. In C, it's
more complex, (for one thing, you'll need to choose between the BSD flavor
``O_NONBLOCK`` and the almost indistinguishable Posix flavor ``O_NDELAY``, which
``O_NONBLOCK`` and the almost indistinguishable POSIX flavor ``O_NDELAY``, which
is completely different from ``TCP_NODELAY``), but it's the exact same idea. You
do this after creating the socket, but before using it. (Actually, if you're
nuts, you can switch back and forth.)
Expand Down
3 changes: 3 additions & 0 deletions Doc/library/asyncio-api-index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ await on multiple things with timeouts.
* - :class:`Task`
- Task object.

* - :func:`to_thread`
- Asychronously run a function in a separate OS thread.

* - :func:`run_coroutine_threadsafe`
- Schedule a coroutine from another OS thread.

Expand Down
8 changes: 7 additions & 1 deletion Doc/library/asyncio-future.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,17 @@ Future Object
Returns the number of callbacks removed, which is typically 1,
unless a callback was added more than once.

.. method:: cancel()
.. method:: cancel(msg=None)

Cancel the Future and schedule callbacks.

If the Future is already *done* or *cancelled*, return ``False``.
Otherwise, change the Future's state to *cancelled*,
schedule the callbacks, and return ``True``.

.. versionchanged:: 3.9
Added the ``msg`` parameter.

.. method:: exception()

Return the exception that was set on this Future.
Expand Down Expand Up @@ -255,3 +258,6 @@ the Future has a result::
- asyncio Future is not compatible with the
:func:`concurrent.futures.wait` and
:func:`concurrent.futures.as_completed` functions.

- :meth:`asyncio.Future.cancel` accepts an optional ``msg`` argument,
but :func:`concurrent.futures.cancel` does not.
Loading