[issue16580] [doc] Add examples to int.to_bytes and int.from_bytes

2021-08-15 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue16580] [doc] Add examples to int.to_bytes and int.from_bytes

2021-08-15 Thread Mark Dickinson
Mark Dickinson added the comment: Merged. Thank you for the contribution! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue16580] [doc] Add examples to int.to_bytes and int.from_bytes

2021-08-15 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset ad0a8a9c629a7a0fa306fbdf019be63c701a8028 by Gautam Chaudhuri in branch 'main': bpo-16580: [doc] Add examples to int.to_bytes and int.from_bytes (GH-27760) https://github.com/python/cpython/commit/ad0a8a9c629a7a0fa306fbdf019be63c701a8028

[issue16580] [doc] Add examples to int.to_bytes and int.from_bytes

2021-08-15 Thread Mark Dickinson
Mark Dickinson added the comment: @Gautam > I think it's out of scope for this issue. Agreed. It was just a note in passing. I don't think it's worth opening a new issue, though, unless this is genuinely causing problems for someone. Just let it lie. --

[issue16580] [doc] Add examples to int.to_bytes and int.from_bytes

2021-08-13 Thread Gautam Chaudhuri
Change by Gautam Chaudhuri : -- pull_requests: +26236 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27760 ___ Python tracker ___

[issue16580] [doc] Add examples to int.to_bytes and int.from_bytes

2021-08-11 Thread Gautam Chaudhuri
Gautam Chaudhuri added the comment: I've rewritten woparry's patch so that it targets the current codebase as well as fixing the issues that Mark mentioned. It appears that the range checks on `to_bytes` have already been added to the documentation so I haven't added those. Should a

[issue16580] [doc] Add examples to int.to_bytes and int.from_bytes

2021-08-02 Thread Irit Katriel
Change by Irit Katriel : -- title: Add examples to int.to_bytes and int.from_bytes -> [doc] Add examples to int.to_bytes and int.from_bytes versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python