Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a08f39 commit a80ea97Copy full SHA for a80ea97
1 file changed
Doc/library/enum.rst
@@ -1046,11 +1046,11 @@ Utilities and Decorators
1046
two's-complement, and the leading bit always indicates sign
1047
(0=positive, 1=negative).
1048
1049
- >>> from enum import enum
+ >>> import enum
1050
>>> enum.bin(10)
1051
- '0b0 1010'
+ ... '0b0 1010'
1052
>>> enum.bin(~10) # ~10 is -11
1053
- '0b1 0101'
+ ... '0b1 0101'
1054
1055
.. versionadded:: 3.11
1056
0 commit comments