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

Skip to content

Commit e9fca25

Browse files
committed
say bitwise (because I have no idea what a bit-string is)
1 parent a50c284 commit e9fca25

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -379,28 +379,28 @@ modules.
379379
380380
.. _bitstring-ops:
381381

382-
Bit-string Operations on Integer Types
382+
Bitwise Operations on Integer Types
383383
--------------------------------------
384384

385385
.. index::
386386
triple: operations on; integer; types
387-
pair: bit-string; operations
387+
pair: bitwise; operations
388388
pair: shifting; operations
389389
pair: masking; operations
390390
operator: ^
391391
operator: &
392392
operator: <<
393393
operator: >>
394394

395-
Integers support additional operations that make sense only for bit-strings.
396-
Negative numbers are treated as their 2's complement value (this assumes a
397-
sufficiently large number of bits that no overflow occurs during the operation).
395+
Bitwise operations only make sense only for integers. Negative numbers are
396+
treated as their 2's complement value (this assumes a sufficiently large number
397+
of bits that no overflow occurs during the operation).
398398

399399
The priorities of the binary bitwise operations are all lower than the numeric
400400
operations and higher than the comparisons; the unary operation ``~`` has the
401401
same priority as the other unary numeric operations (``+`` and ``-``).
402402

403-
This table lists the bit-string operations sorted in ascending priority
403+
This table lists the bitwise operations sorted in ascending priority
404404
(operations in the same box have the same priority):
405405

406406
+------------+--------------------------------+----------+

0 commit comments

Comments
 (0)