Skip to content

Comments

bpo-43868: Remove PyOS_ReadlineFunctionPointer from the stable ABI list#25442

Merged
encukou merged 3 commits intopython:masterfrom
encukou:PyOS_ReadlineFunctionPointer
Apr 23, 2021
Merged

bpo-43868: Remove PyOS_ReadlineFunctionPointer from the stable ABI list#25442
encukou merged 3 commits intopython:masterfrom
encukou:PyOS_ReadlineFunctionPointer

Conversation

@encukou
Copy link
Member

@encukou encukou commented Apr 16, 2021

The inclusion of PyOS_ReadlineFunctionPointer in python3dll.c was a mistake.

According to PEP 384:

functions expecting FILE* are not part of the ABI, to avoid depending
on a specific version of the Microsoft C runtime DLL on Windows.

https://bugs.python.org/issue43868

The inclusion of PyOS_ReadlineFunctionPointer in python3dll.c was a mistake.

According to PEP 384:
> functions expecting FILE* are not part of the ABI, to avoid depending
> on a specific version of the Microsoft C runtime DLL on Windows.
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM: https://bugs.python.org/issue43868#msg391237

I just propose to mention the change in What's New in Python 3.10.

@@ -0,0 +1,3 @@
:c:func:`PyOS_ReadlineFunctionPointer` is no longer exported by
Copy link
Member

Choose a reason for hiding this comment

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

Do you think that it's worth it to be mentioned in C API Changes of What's New in Python 3.10?
https://docs.python.org/dev/whatsnew/3.10.html#id2 ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that sounds reasonable. Thanks for the catch!

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the What's New entry ;-)

@encukou encukou merged commit 91b69b7 into python:master Apr 23, 2021
@encukou encukou deleted the PyOS_ReadlineFunctionPointer branch April 23, 2021 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants