> -1. It's unnecessary optimization for an uncommon case, abuse of syntax Good point. But what else can the unary positive do? I'm just trying to add a use for it. > illogical - why should +"a" be the integer 97? Because `ord("a")` is `97`. Have you read the last question at the end of the post? _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/QXVS5POJO2P34I56BW2Y6OKENKWIVMPD/ Code of Conduct: http://python.org/psf/codeofconduct/
- [Python-ideas] Overloading unary plus in strings with &quo... Jeremiah Vivian
- [Python-ideas] Re: Overloading unary plus in strings ... Chris Angelico
- [Python-ideas] Re: Overloading unary plus in stri... Jeremiah Vivian
- [Python-ideas] Re: Overloading unary plus in ... Chris Angelico
- [Python-ideas] Re: Overloading unary plus... Steven D'Aprano
- [Python-ideas] Re: Overloading unary... MRAB
- [Python-ideas] Re: Overloading u... Ricky Teachey
- [Python-ideas] Re: Overloadi... Jeremiah Vivian
- [Python-ideas] Re: Overloadi... Chris Angelico
- [Python-ideas] Re: Overloadi... Steven D'Aprano
- [Python-ideas] Re: Overloadi... MRAB
- [Python-ideas] Re: Overloadi... Chris Angelico
- [Python-ideas] Re: Overloading unary plus... MRAB