PythonCharmers/python-future

Support @ in pasteurize (matrix multiplication)

Open

#472 opened on May 29, 2019

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (327 forks)batch import
futurize scripthelp wantedunscheduled

Repository metrics

Stars
 (1,172 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

If x @ y appears in a script, it should be changed to x.__matmul__(y). This is used mostly by Numpy.

If you'd like to get fancy about it, you can also support __rmatmul__ and __imatmul__, but just the first one is enough for now.

Contributor guide