Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 Doc/data/stable_abi.dat
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ Py_FileSystemDefaultEncodeErrors
Py_FileSystemDefaultEncoding
Py_Finalize
Py_FinalizeEx
Py_FrozenMain
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice :-D

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make regen-limited-abi;)

Py_GenericAlias
Py_GenericAliasType
Py_GetBuildInfo
Expand Down
6 changes: 5 additions & 1 deletion Tools/scripts/stable_abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"ucnhash.h",
}

MACOS = (sys.platform == "darwin")

def get_exported_symbols(library, dynamic=False):
# Only look at dynamic symbols
Expand All @@ -57,7 +58,10 @@ def get_exported_symbols(library, dynamic=False):
continue

symbol = parts[-1]
yield symbol
if MACOS and symbol.startswith("_"):
yield symbol[1:]
else:
yield symbol


def check_library(stable_abi_file, library, abi_funcs, dynamic=False):
Expand Down