Skip to content

Conversation

@encukou
Copy link
Member

@encukou encukou commented Jan 13, 2026

These had a docs-only deprecation notice since the first version of the docs in this repo. Nowadays we call things “soft deprecated” if there's just a note in the docs.

The deprecated directive needs a version, I went with the first one that had the notice (2.0; it's not in 1.6).

Since PEP 445, they are now direct aliases; there are no (additional) binary compatibility concerns over the preferred names.


📚 Documentation preview 📚: https://cpython-previews--143783.org.readthedocs.build/

Their docs-only deprecation notice appeared 2.0:
https://docs.python.org/release/2.0/api/memoryInterface.html
but not 1.6:
https://docs.python.org/release/2.0/api/memoryInterface.html

Nowadays we call this soft deprecation.

Since PEP 445, they are now direct aliases; there are no (additional)
binary compatibility concerns over the preferred names.
@encukou encukou requested a review from vstinner January 13, 2026 12:00
@bedevere-app bedevere-app bot added docs Documentation in the Doc dir skip news labels Jan 13, 2026
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Jan 13, 2026
@encukou encukou added topic-C-API docs Documentation in the Doc dir skip news and removed docs Documentation in the Doc dir awaiting core review skip news labels Jan 13, 2026
Comment on lines +296 to +301
.. c:macro:: PyMem_MALLOC(size)
PyMem_NEW(type, size)
PyMem_REALLOC(ptr, size)
PyMem_RESIZE(ptr, type, size)
PyMem_FREE(ptr)
PyMem_DEL(ptr)
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be nice to have a table, similar to what I did here.

.. versionchanged:: 3.4
The macros are now aliases of the corresponding mixed-case names.
Previously, their of the macros was the same, but their use did
Copy link
Member

@vstinner vstinner Jan 13, 2026

Choose a reason for hiding this comment

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

Sorry, I don't get the sentence: "their of the macros was the same".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news topic-C-API

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants