This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author FabriceSalvaire
Recipients FabriceSalvaire
Date 2018-04-29.19:49:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1525031396.69.0.682650639539.issue33390@psf.upfronthosting.co.za>
In-reply-to
Content
I use the new matmul @ operator to implement units, for example 1@u_s for 1 second ( see alpha state implementation at https://github.com/FabriceSalvaire/PySpice/tree/master/PySpice/Unit ).

It looks cool, but unfortunately 10@u_s / 2@u_s is actually interpreted as (10@u_s / 2)@u_s instead of (10@u_s) / (2@u_s) due to operator precedence + <<< - <<< * <<< @ <<< / <<< // <<< % https://docs.python.org/3/reference/expressions.html#operator-precedence

Since Python is widely used for scientific applications, would it be possible to investigate this topic ?
History
Date User Action Args
2018-04-29 19:49:56FabriceSalvairesetrecipients: + FabriceSalvaire
2018-04-29 19:49:56FabriceSalvairesetmessageid: <1525031396.69.0.682650639539.issue33390@psf.upfronthosting.co.za>
2018-04-29 19:49:56FabriceSalvairelinkissue33390 messages
2018-04-29 19:49:56FabriceSalvairecreate