Visitar URL original
bpo-16580: [doc] Add examples to int.to_bytes and int.from_bytes by quantumgc · Pull Request #27760 · python/cpython · GitHub
The Wayback Machine - https://web.archive.org/web/20250817235650/https://github.com/python/cpython/pull/27760
Skip to content

bpo-16580: [doc] Add examples to int.to_bytes and int.from_bytes #27760

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 7 commits into from
Aug 15, 2021

Conversation

quantumgc
Copy link
Contributor

@quantumgc quantumgc commented Aug 13, 2021 •

I've also added tests for the code equivalents.

https://bugs.python.org/issue16580

Added tests for the code equivalents for int.to_butes and int.from_bytes
writen in the documentation. Based on woparry's patch[1] from the issue
thread[2].

[1]: https://bugs.python.org/file30372/issue16580.patch
[2]: https://bugs.python.org/issue16580
@bedevere-bot bedevere-bot added awaiting review tests Tests in the Lib/test dir labels Aug 13, 2021
@quantumgc quantumgc changed the title bpo 16580: Add examples to int.to_bytes and int.from_bytes bpo-16580: Add examples to int.to_bytes and int.from_bytes Aug 13, 2021
@quantumgc quantumgc changed the title bpo-16580: Add examples to int.to_bytes and int.from_bytes bpo-16580: [doc] Add examples to int.to_bytes and int.from_bytes Aug 13, 2021
Copy link
Member

@mdickinson mdickinson left a comment

Choose a reason for hiding this comment

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

LGTM!

@mdickinson
Copy link
Member

@quantumgc: Thanks for the contribution! I took the liberty of removing a spurious blank line and fixing some long lines in the test module. I'll merge when the checks complete.

@mdickinson mdickinson merged commit ad0a8a9 into python:main Aug 15, 2021
@quantumgc
Copy link
Contributor Author

@mdickinson: Thanks for reviewing and merging this!

@quantumgc quantumgc deleted the bpo-16580 branch August 15, 2021 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants