Skip to content

bpo-38916: array.array: remove fromstring() and tostring() #17487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 9, 2019
Merged

bpo-38916: array.array: remove fromstring() and tostring() #17487

merged 1 commit into from
Dec 9, 2019

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Dec 6, 2019

`array.array: Remove tostring() and fromstring() methods. They were
aliases to tobytes() and frombytes(), deprecated since Python 3.2.

https://bugs.python.org/issue38916

`array.array: Remove tostring() and fromstring() methods.  They were
aliases to tobytes() and frombytes(), deprecated since Python 3.2.
@vstinner
Copy link
Member Author

vstinner commented Dec 6, 2019

cc @corona10 @rhettinger @brettcannon

@vstinner
Copy link
Member Author

vstinner commented Dec 6, 2019

I kept these notes in the array.rst documentation, since they help to migrate from Python 2 to Python 3:

   .. versionadded:: 3.2
      :meth:`tostring` is renamed to :meth:`tobytes` for clarity.

and

   .. versionadded:: 3.2
      :meth:`fromstring` is renamed to :meth:`frombytes` for clarity.

@vstinner
Copy link
Member Author

vstinner commented Dec 6, 2019

Note for myself: oops, there is a typo in the commit message, remove >`<.

Copy link
Member

@corona10 corona10 left a comment

Choose a reason for hiding this comment

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

Patch looks good to me :)

@vstinner vstinner merged commit 0131aba into python:master Dec 9, 2019
@vstinner vstinner deleted the array branch December 9, 2019 13:09
@vstinner
Copy link
Member Author

vstinner commented Dec 9, 2019

Thanks for the review @corona10.

shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Jan 31, 2020
…17487)

array.array: Remove tostring() and fromstring() methods.  They were
aliases to tobytes() and frombytes(), deprecated since Python 3.2.
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