Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix doctest
  • Loading branch information
guoci committed Oct 30, 2025
commit b470926deab889f9c8ee61cd5d37ebde49b25ebe
2 changes: 1 addition & 1 deletion Doc/library/enum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ Utilities and Decorators
two's-complement, and the leading bit always indicates sign
Comment thread
guoci marked this conversation as resolved.
Outdated
(0=positive, 1=negative).
Comment thread
guoci marked this conversation as resolved.
Outdated

>>> from enum import enum
>>> import enum
>>> enum.bin(10)
'0b0 1010'
>>> enum.bin(~10) # ~10 is -11
Expand Down
Loading