Skip to content
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

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

Merged
merged 1 commit into from Dec 9, 2019

Conversation

@vstinner
Copy link
Member

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

This comment has been minimized.

Copy link
Member Author

vstinner commented Dec 6, 2019

@vstinner

This comment has been minimized.

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

This comment has been minimized.

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 left a comment

Patch looks good to me :)

@vstinner vstinner merged commit 0131aba into python:master Dec 9, 2019
4 checks passed
4 checks passed
Azure Pipelines PR #20191206.14 succeeded
Details
bedevere/issue-number Issue number 38916 found
Details
bedevere/news News entry found in Misc/NEWS.d
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@vstinner vstinner deleted the vstinner:array branch Dec 9, 2019
@vstinner

This comment has been minimized.

Copy link
Member Author

vstinner commented Dec 9, 2019

Thanks for the review @corona10.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.