On Wed, Oct 13, 2021 at 11:21 AM MarylandBall Productions <shayaanwad...@gmail.com> wrote: > > 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. >
Can you give another example of where you invert something into another type? I don't understand the analogy you're making here. ChrisA _______________________________________________ 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/4GEDM7KO3VQMSACETTJPHOWXM7ZH2TDJ/ Code of Conduct: http://python.org/psf/codeofconduct/