← 返回首页
gh-100174: [Enum] Correct PowersOfThree example. by Beweeted · Pull Request #100178 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

gh-100174: [Enum] Correct PowersOfThree example.#100178

Merged
ethanfurman merged 1 commit into
python:mainfrom
Beweeted:patch-1
Dec 11, 2022
Merged

gh-100174: [Enum] Correct PowersOfThree example.#100178
ethanfurman merged 1 commit into
python:mainfrom
Beweeted:patch-1

Conversation

Beweeted commented Dec 11, 2022
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

Changed from multiples of 3 to powers of 3 to match the class name.

Changed from multiples of 3 to powers of 3 to match the class name.

ghost commented Dec 11, 2022
edited by ghost
Loading

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

netlify Bot commented Dec 11, 2022
edited
Loading

Copy link
Copy Markdown

Deploy Preview for python-cpython-preview ready!

Name Link
🔨 Latest commit 660d462
🔍 Latest deploy log https://app.netlify.com/sites/python-cpython-preview/deploys/63964cf6ac4fe9000810997b
😎 Deploy Preview https://deploy-preview-100178--python-cpython-preview.netlify.app
📱 Preview on mobile Toggle QR Code...



Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

bedevere-bot added awaiting review docs Documentation in the Doc dir skip news labels Dec 11, 2022

Copy link
Copy Markdown
Member

Thanks! Unfortunately, nearly all Python PRs are made against the main branch, and then backported to maintenance branches after they've been merged. The best thing to do is to recreate the PR based against main.

Copy link
Copy Markdown
Contributor Author

This is against main. I'm sure I missed something, but I couldn't find the button to make a new branch from the docs. I hit edit on the file, and it auto-forked it and gave me the option to merge it back in.

If you can point me in the right direction @AlexWaygood I'm happy to do the extra steps. Unless those steps are to sync & build the whole repo on my local, which is what the cpython docs were telling me to do.

Really, the most confusing thing is talking about backporting. Which I don't understand how that's applicable to this at all.

AlexWaygood reopened this Dec 11, 2022

AlexWaygood commented Dec 11, 2022
edited
Loading

Copy link
Copy Markdown
Member

This is against main. I'm sure I missed something, but I couldn't find the button to make a new branch from the docs. I hit edit on the file, and it auto-forked it and gave me the option to merge it back in.

If you can point me in the right direction @AlexWaygood I'm happy to do the extra steps. Unless those steps are to sync & build the whole repo on my local, which is what the cpython docs were telling me to do.

Really, the most confusing thing is talking about backporting. Which I don't understand how that's applicable to this at all.

Apologies! Your PR title confused me. We usually use the [3.11] tag for PRs that are against the 3.11 branch.

The "backport" PR will be done automatically by a robot after this PR is merged. You won't need to worry about it.

AlexWaygood changed the title [3.11] gh-100174: Fix math in PowersOfThree example class. [gh-100174: Fix math in PowersOfThree example class. Dec 11, 2022
AlexWaygood changed the title [gh-100174: Fix math in PowersOfThree example class. gh-100174: Fix math in PowersOfThree example class. Dec 11, 2022

Copy link
Copy Markdown
Member

We will need you to sign the CLA, however :)

AlexWaygood added the needs backport to 3.11 only security fixes label Dec 11, 2022

Copy link
Copy Markdown
Contributor Author

Oh, oh oh. That makes sense. I had been seeing the other PRs and most seemed to have the version in the name. It wasn't mentioned in the comment, but I thought I was being a keener. I'll keep this in mind next time!

ethanfurman changed the title gh-100174: Fix math in PowersOfThree example class. gh-100174: [Enum] Correct PowersOfThree example. Dec 11, 2022
ethanfurman self-assigned this Dec 11, 2022

ethanfurman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Looks good! As soon as you sign the CLA we can merge this in.

ethanfurman merged commit 868bab0 into python:main Dec 11, 2022

Copy link
Copy Markdown
Contributor

Thanks @Beweeted for the PR, and @ethanfurman for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

Copy link
Copy Markdown

GH-100181 is a backport of this pull request to the 3.11 branch.

bedevere-bot removed the needs backport to 3.11 only security fixes label Dec 11, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 11, 2022
Changed from multiples of 3 to powers of 3 to match the class name. (cherry picked from commit 868bab0) Co-authored-by: Beweeted <Beweeted@users.noreply.github.com>
miss-islington added a commit that referenced this pull request Dec 11, 2022
Changed from multiples of 3 to powers of 3 to match the class name. (cherry picked from commit 868bab0) Co-authored-by: Beweeted <Beweeted@users.noreply.github.com>
carljm added a commit to carljm/cpython that referenced this pull request Dec 14, 2022
* main: (103 commits) pythongh-100248: Add missing `ssl_shutdown_timeout` parameter in `asyncio` docs (python#100249) Assorted minor fixes for specialization stats. (pythonGH-100219) pythongh-100176: venv: Remove redundant compat code for Python <= 3.2 (python#100177) pythonGH-100222: Redefine _Py_CODEUNIT as a union to clarify structure of code unit. (pythonGH-100223) pythongh-99955: undef ERROR and SUCCESS before redefining (fixes sanitizer warning) (python#100215) pythonGH-100206: use versionadded for the addition of sysconfig.get_default_scheme (python#100207) pythongh-81057: Move _Py_RefTotal to the "Ignored Globals" List (pythongh-100203) pythongh-81057: Move Signal-Related Globals to _PyRuntimeState (pythongh-100085) pythongh-81057: Move faulthandler Globals to _PyRuntimeState (pythongh-100152) pythongh-81057: Move tracemalloc Globals to _PyRuntimeState (pythongh-100151) pythonGH-100143: Improve collecting pystats for parts of runs (pythonGH-100144) pythongh-99955: standardize return values of functions in compiler's code-gen (python#100010) pythongh-79218: Define `MS_WIN64` macro for Mingw-w64 64bit on Windows (pythonGH-100137) Fix: typo (Indention) (pythonGH-99904) pythongh-96715 Remove redundant NULL check in `profile_trampoline` function (python#96716) pythongh-100176: remove incorrect version compatibility check from argument clinic (python#100190) clarify the 4300-digit limit on int-str conversion (python#100175) pythongh-70393: Clarify mention of "middle" scope (python#98839) pythongh-99688: Fix outdated tests in test_unary (python#99712) pythongh-100174: [Enum] Correct PowersOfThree example. (pythonGH-100178) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Footer

© 2026 GitHub, Inc.