{"action":"opened","issue":{"url":"https://api.github.com/repos/borntyping/python-infix/issues/1","labels_url":"https://api.github.com/repos/borntyping/python-infix/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/borntyping/python-infix/issues/1/comments","events_url":"https://api.github.com/repos/borntyping/python-infix/issues/1/events","html_url":"https://github.com/borntyping/python-infix/issues/1","id":97049071,"number":1,"title":"Pow operator","user":{"login":"henryiii","id":4616906,"avatar_url":"https://avatars.githubusercontent.com/u/4616906?v=3","gravatar_id":"","url":"https://api.github.com/users/henryiii","html_url":"https://github.com/henryiii","followers_url":"https://api.github.com/users/henryiii/followers","following_url":"https://api.github.com/users/henryiii/following{/other_user}","gists_url":"https://api.github.com/users/henryiii/gists{/gist_id}","starred_url":"https://api.github.com/users/henryiii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henryiii/subscriptions","organizations_url":"https://api.github.com/users/henryiii/orgs","repos_url":"https://api.github.com/users/henryiii/repos","events_url":"https://api.github.com/users/henryiii/events{/privacy}","received_events_url":"https://api.github.com/users/henryiii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-24T13:08:32Z","updated_at":"2015-07-24T13:08:32Z","closed_at":null,"body":"I have a request:\r\n\r\nAddition of pow operator - it is the only python operator to have higher precesence than `*`,`/`,`%`, so it is very useful in math type contexts:\r\n```python\r\n>>> from uncertainties import ufloat\r\n>>> pm = pow_infix(ufloat)\r\n>>> print(112 **pm** 2 - 1321 **pm** 2)\r\n-1209.0+/-2.8\r\n```\r\nThat can be achieved with:\r\n```python\r\nclass pow_infix(base_infix):\r\n    def right(self, right):\r\n        return self.func(right, self.__infix__)\r\n    \r\n    __pow__ = base_infix.left\r\n    __rpow__ = right\r\n```\r\n\r\nAlso, some of the suggestions [here](http://code.activestate.com/recipes/384122-infix-operators/) look useful. especially the bind suggestion.\r\n\r\nAlso, more default operators would be nice, as there are a large but finite number of them.\r\n\r\nThanks!"}}