Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
160 commits
Select commit Hold shift + click to select a range
eaede0d
bpo-44131: Test Py_FrozenMain() (GH-26126)
vstinner May 17, 2021
834498e
bpo-44131: Fix Makefile for test_frozenmain (GH-26203)
vstinner May 18, 2021
115dea9
bpo-25872: Add unit tests for linecache and threading (GH-25913)
uniocto May 18, 2021
02ee819
bpo-41963: document that ConfigParser strips off comments (GH-26197)
jugmac00 May 18, 2021
4fdcc39
bpo-35765: Clarify references to "object x" in the JSON tutorial (GH-…
ZackerySpytz May 18, 2021
9014437
bpo-30593: Doc'ed that executescript() disregards isolation level (GH…
May 19, 2021
92d1064
bpo-44106: Improve sqlite3 example database contents (GH-26027)
May 19, 2021
d798acc
bpo-44106: Purge unused sqlite3 doc includes (GH-26234)
May 19, 2021
60d343a
bpo-44010: IDLE: colorize pattern-matching soft keywords (GH-25851)
taleinat May 19, 2021
5d6e463
bpo-43749: Ensure current exe is copied when using venv on windows (G…
inorton May 19, 2021
b3ab434
bpo-4928: Document NamedTemporaryFile non-deletion after SIGKILL (#26…
catherinedevlin May 19, 2021
24ccc89
Enable GitHub Actions on the 3.10 branch (GH-26242)
hugovk May 19, 2021
33c0c90
bpo-44168: Fix error message in the parser for keyword arguments for …
pablogsal May 19, 2021
be93f81
Fix compiler warning in the xml module (GH-26245)
pablogsal May 19, 2021
95d0471
Fix compiler warning for misleading guarding in the tkinter (GH-26244)
pablogsal May 19, 2021
f13a6a2
Remove unused function in ceval.c (GH-26246)
pablogsal May 19, 2021
5c66195
bpo-26110: Document `CALL_METHOD_KW` (GH-26159)
Fidget-Spinner May 19, 2021
c054e8f
bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose…
naglis May 19, 2021
b66a03a
[doc] Fix typo in asyncio-eventloop documentation (GH-22311)
brunildisimo May 19, 2021
6830748
bpo-43693: Group the code in codeobject.c logically. (gh-26216)
ericsnowcurrently May 19, 2021
4d396e7
Update link in SECURITY.md (GH-21320)
Marcono1234 May 20, 2021
58a9939
bpo-44131: Py_FrozenMain() uses PyConfig_SetBytesArgv() (GH-26201)
vstinner May 20, 2021
1270ad6
bpo-36160: Fix test_site so that it can run independently of other te…
native-api May 20, 2021
7109624
bpo-38820: Test with OpenSSL 3.0.0-alpha17 (#26266)
tiran May 20, 2021
18f41c0
bpo-38671: Add test that `pathlib.Path.resolve()` returns an absolute…
barneygale May 20, 2021
be4dd7f
bpo-44150: Support optional weights parameter for fmean() (GH-26175)
rhettinger May 21, 2021
b11a951
bpo-44032: Move data stack to thread from FrameObject. (GH-26076)
markshannon May 21, 2021
b51081c
bpo-44180: Report generic syntax errors in the furthest position reac…
pablogsal May 21, 2021
875b3d8
bpo-43643: Sync with python/importlib_resources@c17a610aad. (GH-26284)
jaraco May 21, 2021
642fdfd
[doc] Fix indentation in inspect documentation (GH-24846)
Numerlor May 21, 2021
615069e
bpo-44184: Fix subtype_dealloc() for freed type (GH-26274)
vstinner May 21, 2021
c878a97
bpo-44180: Fix edge cases in invalid assigment rules in the parser (G…
pablogsal May 21, 2021
2f47d8d
bpo-43927: Change 'IOError' to 'OSError' (GH-26289)
terryjreedy May 21, 2021
b06ed1d
Remove duplicate words in docs. (GH-26167)
felixxm May 21, 2021
498383c
bpo-44032: Fix downcast conversion in frameobject.c (GH-26291)
pablogsal May 21, 2021
6cc8ac9
bpo-40736: Improve the error message for re.search() TypeError (GH-23…
ZackerySpytz May 21, 2021
604cd71
Specify Python Cookbook edition for reference (GH-26301)
terryjreedy May 21, 2021
a9e4361
Fix typo for configure.ac (GH-26305)
corona10 May 21, 2021
e9f66ae
Remove effbot urls (GH-26308)
E-Paine May 22, 2021
9e746e3
bpo-20684: Remove unused inspect._signature_get_bound_param (GH-21100)
asottile May 22, 2021
220dd80
bpo-33809: add the TracebackException.print() method (GH-24231)
iritkatriel May 22, 2021
2a1e669
bpo-30757: Improve "How to make stand-alone binaries" FAQ (GH-26309)
May 22, 2021
bd7476d
bpo-44201: Avoid side effects of "invalid_*" rules in the REPL (GH-26…
pablogsal May 22, 2021
8b01067
bpo-28307: Tests and fixes for optimization of C-style formatting (GH…
serhiy-storchaka May 23, 2021
df7eeac
bpo-44210: make importlib.metadata._meta.PackageMetadata public (GH-2…
FFY00 May 23, 2021
8b9310d
bpo-43207: InspectLoader.is_package is not an abstract method (GH-24517)
Isa-rentacs May 23, 2021
3ad101b
Fix typo in whatsnew/3.10.rst (GH-26310)
tusharsadhwani May 23, 2021
af5d497
bpo-44032: Delay deletion of stack chunks until thread state is delet…
markshannon May 24, 2021
7148293
bpo-44195: Use 'TraversableResources' in the docs to match the implem…
jaraco May 24, 2021
563bd5a
bpo-41282: Fix broken `make install` (GH-26329)
encukou May 24, 2021
8450e8a
bpo-38908: [docs] Add changes to 3.10 whatsnew and fix some minor ina…
Fidget-Spinner May 24, 2021
2f3a878
bpo-44151: linear_regression() minor API improvements (GH-26199)
zkneupper May 25, 2021
59acfd4
bpo-43109: Fix --with-lto configure option on macOS (GH-26341)
ned-deily May 25, 2021
2f2e703
bpo-44151: Various grammar, word order, and markup fixes (GH-26344)
rhettinger May 25, 2021
63f17c2
bpo-43109: configure doc: LTO requires "ar" on macOS (GH-26349)
vstinner May 25, 2021
d168569
bpo-43795: Remove Py_FrozenMain from the Limited API & Stable ABI (…
encukou May 25, 2021
2966924
bpo-44156: Make cached string constants in compile.c subinterpreter c…
Fidget-Spinner May 25, 2021
1b940eb
bpo-44231: Don't export internal _PyTuple_FromArray() symbol (GH-26352)
May 25, 2021
d18e5da
bpo-20408: Fix memoryview() signature in docs (GH-24431)
felixxm May 25, 2021
d3c277a
bpo-42972: Fully implement GC protocol for sqlite3 heap types (GH-26104)
May 25, 2021
bd404cc
bpo-42972: Fully implement GC protocol for arraymodule types (GH-26114)
May 25, 2021
bd199e7
bpo-44232: Fix type_new() error reporting (GH-26359)
vstinner May 25, 2021
ee3d78e
Point to recent link to PyFLTK (GH-26315)
mark-summerfield May 25, 2021
2a4cb00
Fix typo in NEWS. (GH-26346)
felixxm May 25, 2021
add805f
Correct minor spelling typos (GH-26339)
jerobado May 25, 2021
156699b
bpo-44222: Improve _removeHandlerRef() for a very long _handlerList (…
Jongy May 25, 2021
46db39d
bpo-41147: [doc] contextlib.redirect_stdout() provides the new stream…
PeterJCLaw May 26, 2021
4f72526
bpo-43988: Add test.support.check_disallow_instantiation() (GH-25757)
May 26, 2021
90a6c07
bpo-43879: Add native_thread_id field to PyThreadState (GH-25458)
P403n1x87 May 26, 2021
06ac3a4
bpo-44241: Incorporate changes from importlib_metadata 4.1. (#26382)
jaraco May 26, 2021
e6c815d
bpo-38693: importlib.metadata f-strings (GH-26383)
jaraco May 26, 2021
6cc800d
bpo-43693: Clean up the PyCodeObject fields. (GH-26364)
ericsnowcurrently May 26, 2021
f6fbdb9
bpo-38693: Prefer f-strings in importlib.resources (importlib_resourc…
jaraco May 26, 2021
d8fd8c8
bpo-42392: [docs] Add deprecated-removed loop labels for asyncio (GH-…
Fidget-Spinner May 26, 2021
3e7ee02
bpo-42161: mathmodule.c: move _PyLong_GetOne() loop invariant (GH-26391)
vstinner May 26, 2021
fbff538
bpo-43988: Use check disallow instantiation helper (GH-26392)
May 27, 2021
59af59c
bpo-42972: Fully support GC for pyexpat, unicodedata, and dbm/gdbm he…
May 27, 2021
6ef5ba3
bpo-42972: Fully support GC for hashlib heap types (GH-26374)
May 27, 2021
dcb8786
bpo-42972: Fully implement GC protocol for ssl heap types (GH-26370)
May 27, 2021
8cec740
bpo-43988: Document test.support.check_disallow_instantiation() (GH-2…
May 27, 2021
abc4bd5
bpo-41611: IDLE: fix freezing on completion on macOS (GH-26400)
taleinat May 27, 2021
4d7f8f9
bpo-42972: Fully support GC protocol for _queue.SimpleQueue (GH-26372)
May 27, 2021
318adeb
bpo-42972: Fully support GC for mmap heap types (GH-26373)
May 27, 2021
9f494d4
bpo-43693: Add _PyCode_New(). (gh-26375)
ericsnowcurrently May 27, 2021
164a4f4
bpo-43667: Add news fragment for Solaris changes (GH-26405)
kulikjak May 27, 2021
fba42d1
bpo-42972: Fully implement GC protocol for re types (GH-26368)
May 27, 2021
f4b70c2
bpo-42972: Fully support GC protocol for _operator heap types (GH-26371)
May 27, 2021
e90e042
bpo-43916: Use test.support.check_disallow_instantiation() in test_tc…
May 27, 2021
28f12c9
bpo-44246: Update What's New for importlib.metadata. (#26408)
jaraco May 27, 2021
28be319
bpo-44256: Do not expose _functools._list_elem_type (GH-26416)
methane May 28, 2021
4e2e5c1
bpo-41611: IDLE: Catch TclError exceptions in AutoCompleteWindow.winc…
taleinat May 28, 2021
8994e9c
bpo-42972: Fully implement GC protocol for functools keywrapper and p…
May 28, 2021
f8a95df
bpo-44206: Add a version number to dictionary keys (GH-26333)
markshannon May 28, 2021
3f8d332
bpo-42972: Fully implement GC protocol for functools LRU cache (GH-26…
May 28, 2021
0fa282c
bpo-42972: Fully support GC for _winapi.Overlapped (GH-26381)
Fidget-Spinner May 28, 2021
490b638
bpo-42972: Fix GC assertion error in _winapi by untracking Overlapped…
Fidget-Spinner May 28, 2021
acac6c7
bpo-44249: Fix 3 README.rst typos (GH-26385)
Ayushparikh-code May 28, 2021
2138b2e
bpo-44045: fix spelling of uppercase vs upper-case (GH-25985)
jugmac00 May 28, 2021
7e6f237
Fix dataclass comment typo _eq__ -> __eq__ (GH-26433)
SeanGrady May 28, 2021
1a672a5
bpo-44206: Fix compiler warnings in dictobject.c (GH-26440)
pablogsal May 28, 2021
8b4312b
bpo-44252: Correctly implement gc support for SSLError objects (GH-26…
pablogsal May 28, 2021
21dd43c
Fix MSVC compiler warnings in dictobject.c (GH-26432)
markshannon May 29, 2021
de14d70
Remove duplicate mime type mapping .bmp -> image/x-ms-bmp (GH-26300)
andreasjansson May 29, 2021
8b55bc3
bpo-44263: Better explain the GC contract for PyType_FromSpecWithBase…
pablogsal May 29, 2021
43cf7c8
bpo-44263: Mention PyType_Ready in the gc protocol warning (GH-26445)
pablogsal May 29, 2021
af5a324
bpo-44254: On Mac, remove disfunctional colors from turtledemo button…
terryjreedy May 29, 2021
0b11c42
bpo-42085: [docs] Add versionadded for am_send in type object documen…
Martmists-GH May 29, 2021
5f28752
bpo-43750: Fix incorrect reference to PACKET_MULTIHOST in the docs (G…
ZackerySpytz May 29, 2021
5ffa58c
Trivial change in fractions module docs: real -> rational numbers (GH…
skirpichev May 29, 2021
14ba761
bpo-44235: Remove deprecated functions in the gettext module. (GH-26378)
corona10 May 30, 2021
8ab5b7e
Fixing typos in turtle.rst (GH-24385)
Seluj78 May 30, 2021
4b20f25
bpo-42972: Fully implement GC protocol for xxlimited (GH-26451)
shihai1991 May 31, 2021
d1124b0
bpo-42972: Fix sqlite3 traverse/clear functions (GH-26452)
May 31, 2021
142e5c5
bpo-44263: Fix _decimal and _testcapi GC protocol (GH-26464)
vstinner May 31, 2021
410b70d
bpo-44246: Entry points performance improvements. (GH-26467)
jaraco May 31, 2021
c34ed08
bpo-44246: Restore compatibility in entry_points (GH-26468)
jaraco May 31, 2021
78d9a9b
bpo-44246: Remove note about access by index now that a compatibility…
jaraco May 31, 2021
a6a2065
bpo-44260: Do not read system entropy without need in Random() (GH-26…
serhiy-storchaka May 31, 2021
fffa0f9
bpo-42972: Track sqlite3 statement objects (GH-26475)
Jun 1, 2021
39dd141
bpo-44273: Improve syntax error message for assigning to "..." (GH-26…
serhiy-storchaka Jun 1, 2021
87272b7
bpo-44279: [doc] reword contextlib.suppress documentation (GH-26428)
MapleCCC Jun 1, 2021
fcda0f5
Fix typo in block comment in Include/internal/pycore_condvar.h (GH-26…
rishi93 Jun 1, 2021
ee76375
bpo-44263: Py_TPFLAGS_HAVE_GC requires tp_traverse (GH-26463)
vstinner Jun 1, 2021
a384b6c
bpo-44165: Optimise sqlite3 statement preparation by passing string s…
Jun 2, 2021
1a8c778
Remove duplicate address in CommonTestMixin_v4.test_leading_zeros() (…
felixxm Jun 2, 2021
7b1f527
bpo-17792: more accurate error message for unbound variable access ex…
iritkatriel Jun 2, 2021
fbf25b8
bpo-44165: pysqlite_statement_create now returns a Py object, not an …
Jun 2, 2021
bdb5690
bpo-44285: getpath.c: Assert that env_file is NULL during an error ch…
stratakis Jun 2, 2021
225caf7
Typo fix in asyncio-eventloop.rst (GH-26482)
zbentley Jun 2, 2021
8916633
build(deps): bump actions/cache from 2.1.5 to 2.1.6 (GH-26476)
dependabot[bot] Jun 2, 2021
320eaa7
bpo-43921: Fix test_ssl.test_pha_required_nocert() (GH-26489)
vstinner Jun 2, 2021
adef445
bpo-44282: Fix occasional test_incremental_editing failures on buildb…
taleinat Jun 2, 2021
e60ab84
bpo-44022: Improve the regression test. (GH-26503)
gpshead Jun 3, 2021
4846ea9
Add bpo-42914 to What's New (GH-25124)
wkeithvan Jun 3, 2021
8b93f0e
bpo-43858: Add logging.getLevelNamesMapping() (GH-26459)
akulakov Jun 3, 2021
4eed282
bpo-39560: Document PyUnicode_FromKindAndData() kind transformation (…
ZackerySpytz Jun 3, 2021
937cebc
bpo-44298: Fix line numbers for early exits in with statements. (GH-2…
markshannon Jun 3, 2021
82ad22a
bpo-42213: Check connection in sqlite3.Connection.__enter__ (GH-26512)
Jun 3, 2021
ea0210f
bpo-43921: Fix test_ssl.test_wrong_cert_tls13() on Windows (GH-26502)
vstinner Jun 3, 2021
2c1e258
bpo-43693: Add new internal code objects fields: co_fastlocalnames an…
ericsnowcurrently Jun 3, 2021
d88b47b
bpo-42213: Remove redundant cyclic GC hack in sqlite3 (GH-26517)
Jun 3, 2021
f3fa63e
bpo-39573: Py_TYPE becomes a static inline function (GH-26493)
vstinner Jun 3, 2021
f461a7f
bpo-42862: Use functools.lru_cache iso. _sqlite.Cache in sqlite3 modu…
Jun 3, 2021
f349124
bpo-11105: Do not crash when compiling recursive ASTs (GH-20594)
isidentical Jun 3, 2021
5c2191d
bpo-43921: Cleanup test_ssl.test_wrong_cert_tls13() (GH-26520)
vstinner Jun 3, 2021
3446516
bpo-44042: Optimize sqlite3 begin transaction (GH-25908)
Jun 3, 2021
b250f89
bpo-44305: Improve syntax error for try blocks without except or fina…
pablogsal Jun 3, 2021
35002aa
bpo-32280: Store _PyRuntime in a named section (GH-4802)
maxbelanger Jun 3, 2021
b2bf2bc
bpo-43693: Compute deref offsets in compiler (gh-25152)
markshannon Jun 4, 2021
6ab65c6
Removing myself from ssl code ownership (GH-26529)
tiran Jun 4, 2021
a46c220
bpo-44048: Fix two hashlib test cases under FIPS mode (GH-26470)
stratakis Jun 4, 2021
17c4edc
bpo-43693: Revert commits 2c1e2583fdc4db6b43d163239ea42b0e8394171f an…
pablogsal Jun 4, 2021
8363ac8
bpo-44041: Add test for sqlite3 column count (GH-25907)
Jun 4, 2021
006fd86
bpo-43853: Handle sqlite3_value_text() errors (GH-25422)
Jun 4, 2021
7459208
bpo-44315: Remove unused connection argument from pysqlite_step() (GH…
Jun 4, 2021
2780df4
Align comment for better readability. (GH-26192)
heckad Jun 4, 2021
dda9ecb
bpo-44279: revert 'exceptions are raised' back to 'exceptions occur' …
iritkatriel Jun 4, 2021
3668e11
Update nonstandard variable names (GH-26540)
rhettinger Jun 4, 2021
f171877
bpo-38323: Skip SubprocessMultiLoopWatcherTest as they can hang the t…
pablogsal Jun 4, 2021
fa106a6
bpo-44304: Fix crash in the sqlite3 module when the GC clears Stateme…
pablogsal Jun 5, 2021
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ Doc/library/token-list.inc linguist-generated=true
Include/token.h linguist-generated=true
Lib/token.py linguist-generated=true
Parser/token.c linguist-generated=true
Programs/test_frozenmain.h linguist-generated=true

# Language aware diff headers
# https://tekin.co.uk/2020/10/better-git-diff-output-for-ruby-python-elixir-and-more
Expand Down
6 changes: 3 additions & 3 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ Python/ast_opt.c @isidentical


# SSL
**/*ssl* @python/crypto-team @tiran
**/*.pem @python/crypto-team @tiran
**/*ssl* @python/crypto-team
**/*.pem @python/crypto-team

# CSPRNG
Python/bootstrap_hash.c @python/crypto-team @tiran
Python/bootstrap_hash.c @python/crypto-team

# Dates and times
**/*datetime* @pganssle @abalkin
Expand Down
5 changes: 2 additions & 3 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ https://devguide.python.org/#status-of-python-branches
## Reporting a Vulnerability

Please read the guidelines on reporting security issues [on the
official website](
https://www.python.org/news/security/#reporting-security-issues-in-python
) for instructions on how to report a security-related problem to
official website](https://www.python.org/dev/security/) for
instructions on how to report a security-related problem to
the Python team responsibly.

To reach the response team, email `security at python dot org`.
24 changes: 13 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ name: Tests
on:
push:
branches:
- main
- 3.9
- 3.8
- 3.7
- 'main'
- '3.10'
- '3.9'
- '3.8'
- '3.7'
pull_request:
branches:
- main
- 3.9
- 3.8
- 3.7
- 'main'
- '3.10'
- '3.9'
- '3.8'
- '3.7'

jobs:
check_source:
Expand Down Expand Up @@ -148,7 +150,7 @@ jobs:
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
- name: 'Restore OpenSSL build'
id: cache-openssl
uses: actions/cache@v2.1.5
uses: actions/cache@v2.1.6
with:
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
Expand Down Expand Up @@ -177,7 +179,7 @@ jobs:
strategy:
fail-fast: false
matrix:
openssl_ver: [1.1.1k, 3.0.0-alpha16]
openssl_ver: [1.1.1k, 3.0.0-alpha17]
env:
OPENSSL_VER: ${{ matrix.openssl_ver }}
MULTISSL_DIR: ${{ github.workspace }}/multissl
Expand All @@ -196,7 +198,7 @@ jobs:
echo "LD_LIBRARY_PATH=${GITHUB_WORKSPACE}/multissl/openssl/${OPENSSL_VER}/lib" >> $GITHUB_ENV
- name: 'Restore OpenSSL build'
id: cache-openssl
uses: actions/cache@v2.1.5
uses: actions/cache@v2.1.6
with:
path: ./multissl/openssl/${{ env.OPENSSL_VER }}
key: ${{ runner.os }}-multissl-openssl-${{ env.OPENSSL_VER }}
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/build_msi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@ name: TestsMSI
on:
push:
branches:
- main
- 3.9
- 3.8
- 3.7
- 'main'
- '3.10'
- '3.9'
- '3.8'
- '3.7'
paths:
- 'Tools/msi/**'
pull_request:
branches:
- main
- 3.9
- 3.8
- 3.7
- 'main'
- '3.10'
- '3.9'
- '3.8'
- '3.7'
paths:
- 'Tools/msi/**'

Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,20 @@ name: Docs
on:
#push:
# branches:
# - main
# - 3.9
# - 3.8
# - 3.7
# - 'main'
# - '3.10'
# - '3.9'
# - '3.8'
# - '3.7'
# paths:
# - 'Doc/**'
pull_request:
branches:
- main
- 3.9
- 3.8
- 3.7
- 'main'
- '3.10'
- '3.9'
- '3.8'
- '3.7'
paths:
- 'Doc/**'
- 'Misc/**'
Expand Down
5 changes: 2 additions & 3 deletions Doc/about.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ Many thanks go to:
and writer of much of the content;
* the `Docutils <http://docutils.sourceforge.net/>`_ project for creating
reStructuredText and the Docutils suite;
* Fredrik Lundh for his `Alternative Python Reference
<http://effbot.org/zone/pyref.htm>`_ project from which Sphinx got many good
ideas.
* Fredrik Lundh for his Alternative Python Reference project from which Sphinx
got many good ideas.


Contributors to the Python Documentation
Expand Down
12 changes: 12 additions & 0 deletions Doc/c-api/gcsupport.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ Constructors for container types must conform to two rules:
#. Once all the fields which may contain references to other containers are
initialized, it must call :c:func:`PyObject_GC_Track`.

.. warning::
If a type adds the Py_TPFLAGS_HAVE_GC, then it *must* implement at least
a :c:member:`~PyTypeObject.tp_traverse` handler or explicitly use one
from its subclass or subclasses.

When calling :c:func:`PyType_Ready` or some of the APIs that indirectly
call it like :c:func:`PyType_FromSpecWithBases` or
:c:func:`PyType_FromSpec` the interpreter will automatically populate the
:c:member:`~PyTypeObject.tp_flags`, :c:member:`~PyTypeObject.tp_traverse`
and :c:member:`~PyTypeObject.tp_clear` fields if the type inherits from a
class that implements the garbage collector protocol and the child class
does *not* include the :const:`Py_TPFLAGS_HAVE_GC` flag.

.. c:function:: TYPE* PyObject_GC_New(TYPE, PyTypeObject *type)

Expand Down
13 changes: 10 additions & 3 deletions Doc/c-api/structures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ the definition of all other Python objects.

Return a :term:`borrowed reference`.

The :c:func:`Py_SET_TYPE` function must be used to set an object type.
Use the :c:func:`Py_SET_TYPE` function to set an object type.

.. versionchanged:: 3.11
:c:func:`Py_TYPE()` is changed to an inline static function.


.. c:function:: int Py_IS_TYPE(PyObject *o, PyTypeObject *type)
Expand All @@ -121,9 +124,10 @@ the definition of all other Python objects.

Get the reference count of the Python object *o*.

Use the :c:func:`Py_SET_REFCNT()` function to set an object reference count.

.. versionchanged:: 3.10
:c:func:`Py_REFCNT()` is changed to the inline static function.
Use :c:func:`Py_SET_REFCNT()` to set an object reference count.


.. c:function:: void Py_SET_REFCNT(PyObject *o, Py_ssize_t refcnt)
Expand All @@ -137,7 +141,10 @@ the definition of all other Python objects.

Get the size of the Python object *o*.

The :c:func:`Py_SET_SIZE` function must be used to set an object size.
Use the :c:func:`Py_SET_SIZE` function to set an object size.

.. versionchanged:: 3.11
:c:func:`Py_SIZE()` is changed to an inline static function.


.. c:function:: void Py_SET_SIZE(PyVarObject *o, Py_ssize_t size)
Expand Down
9 changes: 9 additions & 0 deletions Doc/c-api/type.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ Type Objects
from a type's base class. Return ``0`` on success, or return ``-1`` and sets an
exception on error.

.. note::
If some of the base classes implements the GC protocol and the provided
type does not include the :const:`Py_TPFLAGS_HAVE_GC` in its flags, then
the GC protocol will be automatically implemented from its parents. On
the contrary, if the type being created does include
:const:`Py_TPFLAGS_HAVE_GC` in its flags then it **must** implement the
GC protocol itself by at least implementing the
:c:member:`~PyTypeObject.tp_traverse` handle.

.. c:function:: void* PyType_GetSlot(PyTypeObject *type, int slot)

Return the function pointer stored in the given slot. If the
Expand Down
2 changes: 2 additions & 0 deletions Doc/c-api/typeobj.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2453,6 +2453,8 @@ Async Object Structures
See :c:func:`PyIter_Send` for details.
This slot may be set to ``NULL``.

.. versionadded:: 3.10


.. _slot-typedefs:

Expand Down
6 changes: 6 additions & 0 deletions Doc/c-api/unicode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,12 @@ APIs:
:c:func:`PyUnicode_KIND`). The *buffer* must point to an array of *size*
units of 1, 2 or 4 bytes per character, as given by the kind.

If necessary, the input *buffer* is copied and transformed into the
canonical representation. For example, if the *buffer* is a UCS4 string
(:c:macro:`PyUnicode_4BYTE_KIND`) and it consists only of codepoints in
the UCS1 range, it will be transformed into UCS1
(:c:macro:`PyUnicode_1BYTE_KIND`).

.. versionadded:: 3.3


Expand Down
1 change: 0 additions & 1 deletion Doc/data/stable_abi.dat
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,6 @@ var,Py_FileSystemDefaultEncodeErrors,3.10,
var,Py_FileSystemDefaultEncoding,3.2,
function,Py_Finalize,3.2,
function,Py_FinalizeEx,3.6,
function,Py_FrozenMain,3.10,
function,Py_GenericAlias,3.9,
function,Py_GenericAliasType,3.9,
function,Py_GetBuildInfo,3.2,
Expand Down
2 changes: 1 addition & 1 deletion Doc/faq/gui.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ FLTK

Python bindings for `the FLTK toolkit <http://www.fltk.org>`_, a simple yet
powerful and mature cross-platform windowing system, are available from `the
PyFLTK project <http://pyfltk.sourceforge.net>`_.
PyFLTK project <https://pyfltk.sourceforge.io/>`_.

OpenGL
------
Expand Down
3 changes: 0 additions & 3 deletions Doc/faq/library.rst
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ support, pads, and mouse support. This means the module isn't compatible with
operating systems that only have BSD curses, but there don't seem to be any
currently maintained OSes that fall into this category.

For Windows: use `the consolelib module
<http://effbot.org/zone/console-index.htm>`_.


Is there an equivalent to C's onexit() in Python?
-------------------------------------------------
Expand Down
17 changes: 10 additions & 7 deletions Doc/faq/programming.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ Static type checkers such as `Mypy <http://mypy-lang.org/>`_,
source code.


.. _faq-create-standalone-binary:

How can I create a stand-alone binary from a Python script?
-----------------------------------------------------------

Expand All @@ -89,14 +91,15 @@ only contains those built-in modules which are actually used in the program. It
then compiles the generated C code and links it with the rest of the Python
interpreter to form a self-contained binary which acts exactly like your script.

Obviously, freeze requires a C compiler. There are several other utilities
which don't:

* `py2exe <http://www.py2exe.org/>`_ for Windows binaries
* `py2app <https://github.com/ronaldoussoren/py2app>`_ for Mac OS X binaries
* `cx_Freeze <https://cx-freeze.readthedocs.io/en/latest/>`_ for cross-platform
binaries
The following packages can help with the creation of console and GUI
executables:

* `Nuitka <https://nuitka.net/>`_ (Cross-platform)
* `PyInstaller <http://www.pyinstaller.org/>`_ (Cross-platform)
* `PyOxidizer <https://pyoxidizer.readthedocs.io/en/stable/>`_ (Cross-platform)
* `cx_Freeze <https://marcelotduarte.github.io/cx_Freeze/>`_ (Cross-platform)
* `py2app <https://github.com/ronaldoussoren/py2app>`_ (macOS only)
* `py2exe <http://www.py2exe.org/>`_ (Windows only)

Are there coding standards or a style guide for Python programs?
----------------------------------------------------------------
Expand Down
5 changes: 2 additions & 3 deletions Doc/faq/windows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,8 @@ offender.
How do I make an executable from a Python script?
-------------------------------------------------

See `cx_Freeze <https://cx-freeze.readthedocs.io/en/latest/>`_ and
`py2exe <http://www.py2exe.org/>`_, both are distutils extensions
that allow you to create console and GUI executables from Python code.
See :ref:`faq-create-standalone-binary` for a list of tools that can be used to
make executables.


Is a ``*.pyd`` file the same as a DLL?
Expand Down
2 changes: 1 addition & 1 deletion Doc/glossary.rst
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ Glossary
On Unix, it is the encoding of the LC_CTYPE locale. It can be set with
``locale.setlocale(locale.LC_CTYPE, new_locale)``.

On Windows, it is is the ANSI code page (ex: ``cp1252``).
On Windows, it is the ANSI code page (ex: ``cp1252``).

``locale.getpreferredencoding(False)`` can be used to get the locale
encoding.
Expand Down
6 changes: 1 addition & 5 deletions Doc/howto/curses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,7 @@ everything, though.

The Windows version of Python doesn't include the :mod:`curses`
module. A ported version called `UniCurses
<https://pypi.org/project/UniCurses>`_ is available. You could
also try `the Console module <http://effbot.org/zone/console-index.htm>`_
written by Fredrik Lundh, which doesn't
use the same API as curses but provides cursor-addressable text output
and full support for mouse and keyboard input.
<https://pypi.org/project/UniCurses>`_ is available.


The Python curses module
Expand Down
17 changes: 0 additions & 17 deletions Doc/includes/sqlite3/countcursors.py

This file was deleted.

28 changes: 0 additions & 28 deletions Doc/includes/sqlite3/createdb.py

This file was deleted.

Loading