Title: Enum Docs does MultiplesOfThree instead of PowersOfThree · Issue #100174 · python/cpython · GitHub
Open Graph Title: Enum Docs does MultiplesOfThree instead of PowersOfThree · Issue #100174 · python/cpython
X Title: Enum Docs does MultiplesOfThree instead of PowersOfThree · Issue #100174 · python/cpython
Description: Documentation Current: The example includes a class PowersOfThree. Inside the function _generate_next_value_(), it executes return (count + 1) * 3 (Line 5), which is multiples of three instead of powers of three. Expected: Line 5 should ...
Open Graph Description: Documentation Current: The example includes a class PowersOfThree. Inside the function _generate_next_value_(), it executes return (count + 1) * 3 (Line 5), which is multiples of three instead of p...
X Description: Documentation Current: The example includes a class PowersOfThree. Inside the function _generate_next_value_(), it executes return (count + 1) * 3 (Line 5), which is multiples of three instead of p...
Opengraph URL: https://github.com/python/cpython/issues/100174
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enum Docs does MultiplesOfThree instead of PowersOfThree","articleBody":"# Documentation\r\n\r\nCurrent:\r\nThe example includes a class `PowersOfThree`. Inside the function `_generate_next_value_()`, it executes `return (count + 1) * 3` (Line 5), which is multiples of three instead of powers of three.\r\n\r\nExpected:\r\nLine 5 should be updated to: `return 3 ** (count + 1)`, and the output on Line 9 should be updated to 9.\r\nOR\r\nLine 2 and Line 8 should be updated to `MultiplesOfThree`\r\n\r\nhttps://docs.python.org/3/library/enum.html#enum.Enum._generate_next_value_\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-100178\n* gh-100181\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/Beweeted","@type":"Person","name":"Beweeted"},"datePublished":"2022-12-11T19:28:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/100174/cpython/issues/100174"}
| 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:7bbdf8db-e38e-0925-e1b6-79f5a556954e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2E0:2F4DD4:ECB75E:13E78A5:6969921A |
| html-safe-nonce | 0110299ac48333c457c8f545e5e0bd60c86a708043b7c93584a72d349dd75d42 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkUwOjJGNERENDpFQ0I3NUU6MTNFNzhBNTo2OTY5OTIxQSIsInZpc2l0b3JfaWQiOiI4MjA3Mzk5MjEyNjc2NjQ5NDk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 771f408ce2ba2347c0db2f1e988ff919090f494187a3098fa5cb5098283f6856 |
| hovercard-subject-tag | issue:1490359152 |
| 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/100174/issue_layout |
| twitter:image | https://opengraph.githubassets.com/88568215254edee528b10bcc9432050484f4f931036f3ab352180c3ca2974845/python/cpython/issues/100174 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/88568215254edee528b10bcc9432050484f4f931036f3ab352180c3ca2974845/python/cpython/issues/100174 |
| og:image:alt | Documentation Current: The example includes a class PowersOfThree. Inside the function _generate_next_value_(), it executes return (count + 1) * 3 (Line 5), which is multiples of three instead of p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Beweeted |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3542e147982176a7ebaa23dfb559c8af16f721c03ec560c68c56b64a0f35e751 |
| 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 | af80af7cc9e3de9c336f18b208a600950a3c187c |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width