diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-06 08:40:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 08:40:32 (GMT) |
commit | bae415ad02c79cf3a2eec4aa6969221a12e6716f (patch) | |
tree | cd81929f1c58898b7a052d1480a60520a23942b9 /Tools | |
parent | 00d73caf804c0474980e471347d6385757af975f (diff) | |
download | cpython-bae415ad02c79cf3a2eec4aa6969221a12e6716f.zip cpython-bae415ad02c79cf3a2eec4aa6969221a12e6716f.tar.gz cpython-bae415ad02c79cf3a2eec4aa6969221a12e6716f.tar.bz2 |
gh-102304: doc: Add links to Stable ABI and Limited C API (#105345)
* Add "limited-c-api" and "stable-api" references.
* Rename "stable-abi-list" reference to "limited-api-list".
* Makefile: Document files regenerated by "make regen-limited-abi"
* Remove first empty line in generated files:
- Lib/test/test_stable_abi_ctypes.py
- PC/python3dll.c
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/build/stable_abi.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/build/stable_abi.py b/Tools/build/stable_abi.py index 42b2dd9..4cd1cd9 100644 --- a/Tools/build/stable_abi.py +++ b/Tools/build/stable_abi.py @@ -183,7 +183,7 @@ def generator(var_name, default_path): def gen_python3dll(manifest, args, outfile): """Generate/check the source for the Windows stable ABI library""" write = partial(print, file=outfile) - content = f""" + content = f"""\ /* Re-export stable Python ABI */ /* Generated by {SCRIPT_NAME} */ @@ -267,8 +267,8 @@ def gen_doc_annotations(manifest, args, outfile): def gen_ctypes_test(manifest, args, outfile): """Generate/check the ctypes-based test for exported symbols""" write = partial(print, file=outfile) - write(textwrap.dedent(''' - # Generated by Tools/scripts/stable_abi.py + write(textwrap.dedent(f'''\ + # Generated by {SCRIPT_NAME} """Test that all symbols of the Stable ABI are accessible using ctypes """ @@ -341,7 +341,7 @@ def gen_ctypes_test(manifest, args, outfile): def gen_testcapi_feature_macros(manifest, args, outfile): """Generate/check the stable ABI list for documentation annotations""" write = partial(print, file=outfile) - write('// Generated by Tools/scripts/stable_abi.py') + write(f'// Generated by {SCRIPT_NAME}') write() write('// Add an entry in dict `result` for each Stable ABI feature macro.') write() |