summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/special_methods2.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-07-25 13:15:54 +1000
committerDamien George <damien.p.george@gmail.com>2019-09-26 15:12:39 +1000
commit2069c563f9e944d8f45e524b425fff23208e8153 (patch)
tree97d78474d36e2283e6de86ef5d621b04ae03e87f /tests/basics/special_methods2.py
parent14e203282af6eb987edcbef746089cb906ebae30 (diff)
downloadmicropython-2069c563f9e944d8f45e524b425fff23208e8153.tar.gz
micropython-2069c563f9e944d8f45e524b425fff23208e8153.zip
py: Add support for matmul operator @ as per PEP 465.
To make progress towards MicroPython supporting Python 3.5, adding the matmul operator is important because it's a really "low level" part of the language, being a new token and modifications to the grammar. It doesn't make sense to make it configurable because 1) it would make the grammar and lexer complicated/messy; 2) no other operators are configurable; 3) it's not a feature that can be "dynamically plugged in" via an import. And matmul can be useful as a general purpose user-defined operator, it doesn't have to be just for numpy use. Based on work done by Jim Mussared.
Diffstat (limited to 'tests/basics/special_methods2.py')
0 files changed, 0 insertions, 0 deletions