[issue30217] Missing entry for the tilde (~) operator in the Index

Eric Lebigot report at bugs.python.org
Mon May 8 13:10:15 EDT 2017


Eric Lebigot added the comment:

Good reference.

Another one would be https://docs.python.org/3/reference/expressions.html#unary-arithmetic-and-bitwise-operations, which explicitly indicates that it only makes sense for integer types (which is useful to keep in mind, as one may think that it could somehow apply to floating point numbers as well).

The one at https://docs.python.org/3.6/reference/datamodel.html#object.__invert__ is also important for learning that it is related to __invert__().

----------
nosy: +Eric Lebigot

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30217>
_______________________________________


More information about the Python-bugs-list mailing list