Python 3.5 introduces the @ character for an optional operator.
PEP465 introduced this new operator for matrix multiplication to simplify the notation of many numeric codes. The operator will not be implemented for all types, but only for objects like arrays.
You can support the operator for your classes / objects by implementing __matmul__() .
PEP leaves room for another use of the operator for non-array objects.
Of course, you can implement with @ any operation other than matrix multiplication for objects like arrays, but this will affect the user's work, because everyone will expect your data type to behave differently.
gg349 Jan 09 '15 at 10:32 2015-01-09 10:32
source share