Fix remaining broken links. by ezio-melotti · Pull Request #1013 · python/devguide
| :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`, |
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 to Include/internal/pycore_token.h (the rest is paragraph reflow).
| 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`. |
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 to Include/internal/pycore_ast.h.
| 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 |
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 into Python/compile.c in python/cpython#21517.
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. |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both got merged into Python/compile.c, which is already listed above, so I removed these.