FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Enum Docs does MultiplesOfThree instead of PowersOfThree · Issue #100174 · python/cpython · GitHub

/ cpython Public

Enum Docs does MultiplesOfThree instead of PowersOfThree #100174

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 be updated to: return 3 ** (count + 1), and the output on Line 9 should be updated to 9.
OR
Line 2 and Line 8 should be updated to MultiplesOfThree

https://docs.python.org/3/library/enum.html#enum.Enum._generate_next_value_

Linked PRs

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dir

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


Back | FazBrowse Home | New Git URL