23.02.20 23:51, Aaron Hall via Python-ideas пише:
This is not a fully baked idea, perhaps there's a good reason we haven't added a binary `~`. It seems like I've seen discussion in the past. But I couldn't find such discussion. And as I'm currently taking some statistics courses, I'm getting R-feature-envy again...
Sorry, but I did not understand what this operator does, except that it has some relation to R.
For the "-" operators, unary and binary operators are related. For an number x
-x == 0 - x Is there similar relation between unary and binary "~"? ~x == 0 ~ x I guess "~" is a bitwise NOR operator (or Peirce's arrow): x ~ y == ~x & ~y _______________________________________________ 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/M7U3BXCOMRGDFCDJSKS6XSF3EP6AIGSP/ Code of Conduct: http://python.org/psf/codeofconduct/