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 (1,172 stars) (327 forks)batch import
futurize scripthelp wantedunscheduled

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