vector - Adding a new binary operator to Python 3 -


i use operator such 'x' give cross-product of 2 vectors. there way add such operator python 3?

you cannot supplement python's set of operators , statements directly in python code. however, can write wrapper uses python's language services write pythonesque dsl includes operators want.


Comments

Popular posts from this blog

How to show in django cms breadcrumbs full path? -

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -