Title: Better `or` doc wording · Issue #100556 · python/cpython · GitHub
Open Graph Title: Better `or` doc wording · Issue #100556 · python/cpython
X Title: Better `or` doc wording · Issue #100556 · python/cpython
Description: Documentation x or y is documented as: if x is false, then y, else x That looks unnatural/backwards/negated to me. It's not how I think of it. I suggest: if x is true, then x, else y Linked PRs gh-100589 gh-102108 gh-102109
Open Graph Description: Documentation x or y is documented as: if x is false, then y, else x That looks unnatural/backwards/negated to me. It's not how I think of it. I suggest: if x is true, then x, else y Linked PRs gh-...
X Description: Documentation x or y is documented as: if x is false, then y, else x That looks unnatural/backwards/negated to me. It's not how I think of it. I suggest: if x is true, then x, else y Linked PRs...
Opengraph URL: https://github.com/python/cpython/issues/100556
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Better `or` doc wording","articleBody":"# Documentation\r\n\r\n`x or y` is [documented](https://docs.python.org/3/library/stdtypes.html#boolean-operations-and-or-not) as:\r\n\r\n\u003e if x is false, then y, else x\r\n\r\nThat looks unnatural/backwards/negated to me. It's not how I think of it. I suggest:\r\n\r\n\u003e if x is true, then x, else y\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-100589\n* gh-102108\n* gh-102109\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/pochmann","@type":"Person","name":"pochmann"},"datePublished":"2022-12-27T13:57:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/100556/cpython/issues/100556"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e73446aa-75d3-96ff-022a-823b2aaf68b7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CED6:2F9DEC:9AB698:D8CE1D:696A24ED |
| html-safe-nonce | d1707df5c44a53e85a0054273970570e5e97bc5b10aa2a616cd329b3923fab64 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRUQ2OjJGOURFQzo5QUI2OTg6RDhDRTFEOjY5NkEyNEVEIiwidmlzaXRvcl9pZCI6IjU0ODI3NTkxNjA4MTUyOTc3NzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8a9e38909f9b3f44627ff645286bad1ad54364d3044279168be0aaa397c595bf |
| hovercard-subject-tag | issue:1511826755 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/100556/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a4f4a3d03590a74fe6f79b5c2fd1f109a6790e3c29636b4d78a819b44bdc4d0/python/cpython/issues/100556 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a4f4a3d03590a74fe6f79b5c2fd1f109a6790e3c29636b4d78a819b44bdc4d0/python/cpython/issues/100556 |
| og:image:alt | Documentation x or y is documented as: if x is false, then y, else x That looks unnatural/backwards/negated to me. It's not how I think of it. I suggest: if x is true, then x, else y Linked PRs gh-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pochmann |
| hostname | github.com |
| expected-hostname | github.com |
| None | a1022f03e4f0d91ea173e4e5dac892c982e0588c62f1ce56121d755a320a3569 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f472b8e6c7b3fdd5d0354972a3f4c516289bf0be |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width