Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix remaining broken links.#1013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
hugovk merged 2 commits intopython:mainfromezio-melotti:fix-broken-links
Dec 25, 2022
Merged

Conversation

ezio-melotti
Copy link
Member

This PR fixes the remaining broken links andcloses#681.

:cpy-file:`Doc/library/token-list.inc`. If you change both ``python.gram``
and ``Tokens``, run ``make regen-token`` before ``make regen-pegen``.
changing it, run ``make regen-token`` to regenerate
:cpy-file:`Include/internal/pycore_token.h`, :cpy-file:`Parser/token.c`,
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Include/token.h was renamed toInclude/internal/pycore_token.h (the rest is paragraph reflow).

CAM-Gerlach reacted with thumbs up emoji
Then run ``make regen-ast`` to regenerate :cpy-file:`Include/Python-ast.h`
and :cpy-file:`Python/Python-ast.c`.
Then run ``make regen-ast`` to regenerate
:cpy-file:`Include/internal/pycore_ast.h`and :cpy-file:`Python/Python-ast.c`.
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Include/Python-ast.h was moved toInclude/internal/pycore_ast.h.

CAM-Gerlach reacted with thumbs up emoji
@@ -490,7 +490,7 @@ Finally, you need to introduce the use of the new bytecode. Altering
places to change. You must add the case for a new opcode into the 'switch'
statement in the ``stack_effect()`` function in :cpy-file:`Python/compile.c`.
If the new opcode has a jump target, you will need to update macros and
'switch' statements in :cpy-file:`Python/peephole.c`. If it affects a control
'switch' statements in :cpy-file:`Python/compile.c`. If it affects a control
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

The relevant code was apparently moved intoPython/compile.c inpython/cpython#21517.

CAM-Gerlach reacted with thumbs up emoji
Comment on lines -582 to -586
* :cpy-file:`Python/peephole.c`: Optimizes the bytecode.

* :cpy-file:`Python/pyarena.c`: Implementation of the arena memory manager.

* :cpy-file:`Python/wordcode_helpers.h`: Helpers for generating bytecode.
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Both got merged intoPython/compile.c, which is already listed above, so I removed these.

CAM-Gerlach reacted with thumbs up emoji
Copy link
Member

@CAM-GerlachCAM-Gerlach left a comment

Choose a reason for hiding this comment

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

One not-directly-related comment, but LGTM at least from a basic source diff inspection and spot-checking the rendered preview

Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Copy link
Member

@hugovkhugovk left a comment

Choose a reason for hiding this comment

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

Thanks! 🎄

ezio-melotti reacted with hooray emoji
@hugovkhugovk merged commitc0e1638 intopython:mainDec 25, 2022
@ezio-melottiezio-melotti deleted the fix-broken-links branchDecember 25, 2022 23:49
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@hugovkhugovkhugovk approved these changes

@CAM-GerlachCAM-GerlachCAM-Gerlach approved these changes

Assignees

@ezio-melottiezio-melotti

Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Fix broken links in the Devguide
3 participants
@ezio-melotti@hugovk@CAM-Gerlach

[8]ページ先頭

©2009-2025 Movatter.jp