Skip to content

Conversation

@guoci
Copy link
Contributor

@guoci guoci commented Oct 30, 2025

Add documentation for enum.bin function. As suggested in #140765 (review), by @ethanfurman.


📚 Documentation preview 📚: https://cpython-previews--140807.org.readthedocs.build/

@guoci guoci marked this pull request as ready for review October 30, 2025 19:30
@guoci guoci requested a review from ethanfurman as a code owner October 30, 2025 19:30
'0b1 0101'
"""

num = num.__index__()
Copy link
Member

Choose a reason for hiding this comment

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

Why are we mixing doc changes and support for int-like objects?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To be consistent with builtins.bin.
https://docs.python.org/dev/library/functions.html#bin

guoci and others added 5 commits October 30, 2025 16:16
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants