PythonCharmers/python-future

Support @ in pasteurize (matrix multiplication)

Open

#472 aberto em 29 de mai. de 2019

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)Python (327 forks)batch import
futurize scripthelp wantedunscheduled

Métricas do repositório

Stars
 (1.172 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 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.

Guia do colaborador