I would think `~string` could be good for a shorthand way to convert a string to an integer, considering you’re “inverting” the string to another type, though a downside to this would be that explicit is always better than implicit and ~string will be a confusing operation to many users. _______________________________________________ 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/LXE4ONWIOS7K5AHIZCVKQ4XF4CBV55UB/ Code of Conduct: http://python.org/psf/codeofconduct/
- [Python-ideas] Re: Implementing addi... Abdur-Rahmaan Janhangeer
- [Python-ideas] Re: Implementing string unary... Steven D'Aprano
- [Python-ideas] Re: Implementing string u... Chris Angelico
- [Python-ideas] Re: Implementing stri... Steven D'Aprano
- [Python-ideas] Re: Implementing ... Ricky Teachey
- [Python-ideas] Re: Implementing ... Chris Angelico
- [Python-ideas] Re: Implemen... 2QdxY4RzWzUUiLuE
- [Python-ideas] Re: Impl... Chris Angelico
- [Python-ideas] Re: Implementing string u... Stephen J. Turnbull
- [Python-ideas] Re: Implementing stri... Steven D'Aprano
- [Python-ideas] Re: Implementing string unary oper... MarylandBall Productions
- [Python-ideas] Re: Implementing string unary... Chris Angelico
- [Python-ideas] Re: Implementing string unary... Jeremiah Vivian
- [Python-ideas] Re: Implementing string unary... Steven D'Aprano
- [Python-ideas] Re: Implementing string u... Stephen J. Turnbull
- [Python-ideas] Re: Implementing string unary... Serhiy Storchaka
- [Python-ideas] Re: Implementing string unary oper... Jeremiah Vivian
- [Python-ideas] Re: Implementing string unary... Guido van Rossum
- [Python-ideas] Re: Implementing string u... Steven D'Aprano
- [Python-ideas] Re: Implementing string unary oper... Steven D'Aprano
- [Python-ideas] Re: Implementing string unary oper... Jeremiah Vivian