Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The PEP explains this:

"In numerical code, there are two important operations which compete for use of Python's * operator: elementwise multiplication, and matrix multiplication"

The idea is to keep using * for elementwise multiplication, and use @ for matrix multiplication.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: