I posted a previous thread about overloading the unary `+` operator in strings with `ord`, and that expanded to more than just the unary `+` operator. So I'm saying now, there should be these implementations: > +string - `int(string, 10)` (or just `int(string)`) > -string - `int(string, 8)` > ~string - `int(string, 16)`
Or: > +string - `string.lstrip()` > -string - `string.rstrip()` > ~string - `string.strip()` If anyone has better ideas, they can post it here. _______________________________________________ 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/E2NCFN5ASRHTP7HYWXL5DXDZ7LCTHA2G/ Code of Conduct: http://python.org/psf/codeofconduct/