PythonCharmers/python-future

Support @ in pasteurize (matrix multiplication)

Open

#472 aperta il 29 mag 2019

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Python (327 fork)batch import
futurize scripthelp wantedunscheduled

Metriche repository

Star
 (1172 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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.

Guida contributor