Skip to content

Conversation

@MaxGaukler
Copy link
Contributor

@MaxGaukler MaxGaukler commented Mar 20, 2020

The meaning of * is ambiguous: Some libraries such as NumPy use it for elementwise multiplication, others for matrix multiplication. Since Python3 and PEP465, there is a new operator @ for matrix multiplication.

This pull request adds @ as an alias for * and includes some workarounds so that the tests using @ can be skipped under Python 2 Python <= 3.4, where it is a syntax error. (Not sure how long you plan to support Python 2, which has reached its end-of-life, see https://python3statement.org/ ).

@fredrik-johansson
Copy link
Collaborator

Seems fine. I have nothing against removing Python 2 support at this point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants