Skip to content

Handle missing matmul on Python 3.4#3791

Merged
jakirkham merged 1 commit intodask:masterfrom
jakirkham:hdl_missing_matmul_py34
Jul 20, 2018
Merged

Handle missing matmul on Python 3.4#3791
jakirkham merged 1 commit intodask:masterfrom
jakirkham:hdl_missing_matmul_py34

Conversation

@jakirkham
Copy link
Member

@jakirkham jakirkham commented Jul 20, 2018

As matmul was added in Python 3.5 and we still support Python 3.4, we can't get away with just adding this on Python 3 only as it will fail on Python 3.4. To fix this, simply try to add matmul support everywhere and skip it if matmul is not an operator.

  • Tests added / passed
  • Passes flake8 dask

ref: https://travis-ci.org/dask/dask/jobs/398614096

@jakirkham jakirkham force-pushed the hdl_missing_matmul_py34 branch from 031b0a0 to 7316d99 Compare July 20, 2018 16:26
This was referenced Jul 20, 2018
As `matmul` was added in Python 3.5 and we still support Python 3.4, we
can't get away with just adding this on Python 3 only as it will fail on
Python 3.4. To fix this, simply try to add `matmul` support everywhere
and skip it if `matmul` is not an operator.
@mrocklin
Copy link
Member

Seems fine to me. We should also consider dropping 3.4 at some point.

@jakirkham
Copy link
Member Author

Thanks for taking look.

Agree. Was thinking about it, but decided to just fix the test for now.

@jakirkham
Copy link
Member Author

Raised issue ( #3797 ) to discuss dropping Python 3.4.

@jakirkham jakirkham merged commit 91ad15f into dask:master Jul 20, 2018
@jakirkham jakirkham deleted the hdl_missing_matmul_py34 branch July 20, 2018 22:41
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