summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-06-06 13:11:28 (GMT)
committerGitHub <noreply@github.com>2023-06-06 13:11:28 (GMT)
commit82ab13c49a77b0d73e6cd5c7ecfe0de1b1036819 (patch)
tree399181df7bf91ba418faa7d419daf56accc5abc9 /Tools
parent67b288f8be4989176ffab04c72794e5faf5797a5 (diff)
downloadcpython-82ab13c49a77b0d73e6cd5c7ecfe0de1b1036819.zip
cpython-82ab13c49a77b0d73e6cd5c7ecfe0de1b1036819.tar.gz
cpython-82ab13c49a77b0d73e6cd5c7ecfe0de1b1036819.tar.bz2
[3.12] gh-102304: doc: Add links to Stable ABI and Limited C API (#105345) (#105371)
* 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 (cherry picked from commit bae415ad02c79cf3a2eec4aa6969221a12e6716f) * gh-102304: Fix up Simple ABI doc (GH-105351) (cherry picked from commit 0202aa002e06acef9aa55ace0d939103df19cadd)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/build/stable_abi.py8
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()