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 <rep...@bugs.python.org>
<http://bugs.python.org/issue30217>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to