- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 33.3k
          gh-140806: add docs for enum.bin function
          #140807
        
          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
base: main
Are you sure you want to change the base?
Conversation
| '0b1 0101' | ||
| """ | ||
|  | ||
| num = num.__index__() | 
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
        
          
                Misc/NEWS.d/next/Documentation/2025-10-30-19-28-42.gh-issue-140806.RBT9YH.rst
          
            Show resolved
            Hide resolved
        
      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>
Add documentation for
enum.binfunction. As suggested in #140765 (review), by @ethanfurman.enum.bin#140806📚 Documentation preview 📚: https://cpython-previews--140807.org.readthedocs.build/