]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-16580: [doc] Add examples to int.to_bytes and int.from_bytes (GH-27760)
authorGautam Chaudhuri <gautam.chaudhuri.1803@gmail.com>
Sun, 15 Aug 2021 11:29:05 +0000 (12:29 +0100)
committerGitHub <noreply@github.com>
Sun, 15 Aug 2021 11:29:05 +0000 (12:29 +0100)
commitad0a8a9c629a7a0fa306fbdf019be63c701a8028
treeb9a3bb5d459ffa6934ba402c5c121448afebed64
parented524b4569b1e4a166886c880018418d46284378
bpo-16580: [doc] Add examples to int.to_bytes and int.from_bytes (GH-27760)

* added code equivs. for to_bytes and from_bytes

Based on woparry's patch[1] from the relevant issue thread[2].

[1]: https://bugs.python.org/file30372/issue16580.patch
[2]: https://bugs.python.org/issue16580

Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
Doc/library/stdtypes.rst
Lib/test/test_long.py
Misc/ACKS
Misc/NEWS.d/next/Documentation/2021-08-13-20-17-59.bpo-16580.MZ_iK9.rst [new file with mode: 0644]