PythonCharmers/python-future

Support @ in pasteurize (matrix multiplication)

Open

#472 ouverte le 29 mai 2019

Voir sur GitHub
 (0 commentaires) (0 réactions) (0 assignés)Python (327 forks)batch import
futurize scripthelp wantedunscheduled

Métriques du dépôt

Stars
 (1 172 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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.

Guide contributeur