Issue 30217: Missing entry for the tilde (~) operator in the Index (original) (raw)

Issue30217

Created on 2017-04-30 19:56 by lebigot, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 1502 merged marco.buttu,2017-05-08 15:56
PR 2138 merged marco.buttu,2017-06-12 17:29
PR 2137 merged marco.buttu,2017-06-12 17:29
PR 2136 merged marco.buttu,2017-06-12 17:30
Messages (8)
msg292641 - (view) Author: Eric O. LEBIGOT (lebigot) Date: 2017-04-30 19:56
The index (https://docs.python.org/3.6/genindex-Symbols.html) is missing an entry for the tilde operator ~ (there is also no entry under "tilde"). A relevant pointer could be to object.__invert__ (https://docs.python.org/3.6/reference/datamodel.html#object.__invert__).
msg293238 - (view) Author: Marco Buttu (marco.buttu) * Date: 2017-05-08 15:50
Thanks Eric. I think the reference should be added here, as we do for the other operators: https://docs.python.org/3/library/stdtypes.html#bitwise-operations-on-integer-types
msg293241 - (view) Author: Eric Lebigot (Eric Lebigot) * Date: 2017-05-08 17:10
Good reference. Another one would be https://docs.python.org/3/reference/expressions.html#unary-arithmetic-and-bitwise-operations, which explicitly indicates that it only makes sense for integer types (which is useful to keep in mind, as one may think that it could somehow apply to floating point numbers as well). The one at https://docs.python.org/3.6/reference/datamodel.html#object.__invert__ is also important for learning that it is related to __invert__().
msg293324 - (view) Author: Marco Buttu (marco.buttu) * Date: 2017-05-09 15:38
Looking at Doc/reference/expressions.rst and Doc/reference/datamodel.rst, I do not see any reference to the symbols, but only to the operator name (negation, minus, plus, inversion, etc.). Therefore I think it is better to not change these files. In the PR [*] I added (in Doc/library/stdtypes.rst) both a reference to the symbol and to the name. Thank you very much [*] https://github.com/python/cpython/pull/1502/
msg295531 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-06-09 14:28
New changeset 5eb7075915f0509c5027376bda0e6d9c1e505a2c by Serhiy Storchaka (Marco Buttu) in branch 'master': bpo-30217: Add the operators ~ and | to the index (#1502) https://github.com/python/cpython/commit/5eb7075915f0509c5027376bda0e6d9c1e505a2c
msg295816 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2017-06-12 19:41
New changeset f59cac4b6458e5c47e24a39ba46fb178c3766577 by Mariatta (Marco Buttu) in branch '3.6': bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2136) https://github.com/python/cpython/commit/f59cac4b6458e5c47e24a39ba46fb178c3766577
msg295818 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2017-06-12 19:42
New changeset bbb335891c2967bd13fbe2da775c0348260d95cb by Mariatta (Marco Buttu) in branch '2.7': bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2137) https://github.com/python/cpython/commit/bbb335891c2967bd13fbe2da775c0348260d95cb
msg295819 - (view) Author: Mariatta (Mariatta) * (Python committer) Date: 2017-06-12 19:44
New changeset 37e04153d5e331162608b33639ecd3c9a5ae2432 by Mariatta (Marco Buttu) in branch '3.5': bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2138) https://github.com/python/cpython/commit/37e04153d5e331162608b33639ecd3c9a5ae2432
History
Date User Action Args
2022-04-11 14:58:45 admin set github: 74403
2017-06-12 19:45:14 Mariatta set status: open -> closedresolution: fixedstage: resolved
2017-06-12 19:44:05 Mariatta set messages: +
2017-06-12 19:42:51 Mariatta set messages: +
2017-06-12 19:41:45 Mariatta set nosy: + Mariattamessages: +
2017-06-12 17:30:01 marco.buttu set pull_requests: + <pull%5Frequest2192>
2017-06-12 17:29:37 marco.buttu set pull_requests: + <pull%5Frequest2191>
2017-06-12 17:29:19 marco.buttu set pull_requests: + <pull%5Frequest2190>
2017-06-09 14:28:30 serhiy.storchaka set nosy: + serhiy.storchakamessages: +
2017-05-09 15:38:14 marco.buttu set messages: +
2017-05-08 17:10:15 Eric Lebigot set nosy: + Eric Lebigotmessages: +
2017-05-08 15:56:23 marco.buttu set pull_requests: + <pull%5Frequest1603>
2017-05-08 15:50:22 marco.buttu set nosy: + marco.buttumessages: +
2017-05-05 22:01:33 terry.reedy set nosy: + terry.reedyversions: - Python 3.3, Python 3.4
2017-04-30 19:56:00 lebigot create