"clearly marked experimental"
The - (subtraction) operator yields the difference of its arguments. The numeric arguments are first converted to a common type.
-
To support this operator in your own classes, implement the __sub__ method.
last updated 2 years ago by effbot #
log in