bpo-30217: add the operators ~ and | to the index (GH-1502) (GH-2136) · python/cpython@f59cac4 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit f59cac4
authored and
committed
(cherry picked from commit dc980df)
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -394,10 +394,12 @@ Bitwise Operations on Integer Types | ||
394 | 394 | pair: bitwise; operations |
395 | 395 | pair: shifting; operations |
396 | 396 | pair: masking; operations |
397 | + operator: | | |
397 | 398 | operator: ^ |
398 | 399 | operator: & |
399 | 400 | operator: << |
400 | 401 | operator: >> |
402 | + operator: ~ | |
401 | 403 | |
402 | 404 | Bitwise operations only make sense for integers. Negative numbers are treated |
403 | 405 | as their 2's complement value (this assumes that there are enough bits so that |