Skip to content

bpo-45082: Deprecate ctypes.c_buffer() alias#28114

Closed
vstinner wants to merge 1 commit intopython:mainfrom
vstinner:ctypes_c_buffer
Closed

bpo-45082: Deprecate ctypes.c_buffer() alias#28114
vstinner wants to merge 1 commit intopython:mainfrom
vstinner:ctypes_c_buffer

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Sep 1, 2021

Deprecate the ctypes.c_buffer() alias to the
ctypes.create_string_buffer(): use directly
ctypes.create_string_buffer() instead. The alias will be removed in
Python 3.13.

https://bugs.python.org/issue45082

@vstinner
Copy link
Copy Markdown
Member Author

vstinner commented Sep 1, 2021

cc @serhiy-storchaka @methane @corona10: I don't know who maintains ctypes today :-p

Comment on lines 71 to 72
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LOL, this has been like this since the original 2006 inclusion to the stdlib.

Deprecate the ctypes.c_buffer() alias to the
ctypes.create_string_buffer(): use directly
ctypes.create_string_buffer() instead.
@vstinner
Copy link
Copy Markdown
Member Author

vstinner commented Sep 2, 2021

See also PR #28129.

@ambv
Copy link
Copy Markdown
Contributor

ambv commented Sep 2, 2021

Closing in favor of GH-28129.

@ambv ambv closed this Sep 2, 2021
@vstinner vstinner deleted the ctypes_c_buffer branch September 2, 2021 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants