Skip to content

bpo-45155: Apply new byteorder default values for int.to/from_bytes #28465

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 5 commits into from
Sep 20, 2021

Conversation

rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Sep 20, 2021

The code is a little faster and a little more readable with the new default value for byteorder.

Added comments to point of endianess in cases where it might matter.

https://bugs.python.org/issue45155

@rhettinger rhettinger added performance Performance or resource usage skip issue skip news 🔨 test-with-buildbots Test PR w/ buildbots; report in status section labels Sep 20, 2021
@rhettinger rhettinger requested a review from tiran as a code owner September 20, 2021 06:23
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, I just added a minor suggestion.

For the commit message, you can reuse "bpo-45155: " to give more context to the change.

@ambv ambv removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Sep 20, 2021
@rhettinger rhettinger changed the title Apply new byteorder default values for int.to/from_bytes bpo-45155: Apply new byteorder default values for int.to/from_bytes Sep 20, 2021
rhettinger and others added 3 commits September 20, 2021 12:48
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@rhettinger rhettinger merged commit 9510e6f into python:main Sep 20, 2021
@rhettinger rhettinger deleted the random_from_bytes branch September 20, 2021 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance or resource usage skip issue skip news
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants