Skip to content

Commit d42a3be

Browse files
committed
update other references to moved pages
1 parent 1948489 commit d42a3be

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

InternalDocs/code_objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ the source code location, which is useful for debuggers and other tools.
1010
Since 3.11, the final field of the `PyCodeObject` C struct is an array
1111
of indeterminate length containing the bytecode, `code->co_code_adaptive`.
1212
(In older versions the code object was a
13-
[`bytes`](https://docs.python.org/dev/library/stdtypes.html#bytes)
13+
[`bytes`](https://docs.python.org/dev/builtins/stdtypes.html#bytes)
1414
object, `code->co_code`; this was changed to save an allocation and to
1515
allow it to be mutated.)
1616

InternalDocs/parser.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Key ideas
8080
using memoization.
8181
- If parsing fails completely (no rule succeeds in parsing all the input text), the
8282
PEG parser doesn't have a concept of "where the
83-
[`SyntaxError`](https://docs.python.org/3/library/exceptions.html#SyntaxError) is".
83+
[`SyntaxError`](https://docs.python.org/3/builtins/exceptions.html#SyntaxError) is".
8484

8585

8686
> [!IMPORTANT]
@@ -654,7 +654,7 @@ is, and it will unwind the stack and report the exception. This means that if a
654654
[rule action](#grammar-actions) raises an exception, all parsing will
655655
stop at that exact point. This is done to allow to correctly propagate any
656656
exception set by calling Python's C API functions. This also includes
657-
[`SyntaxError`](https://docs.python.org/3/library/exceptions.html#SyntaxError)
657+
[`SyntaxError`](https://docs.python.org/3/builtins/exceptions.html#SyntaxError)
658658
exceptions and it is the main mechanism the parser uses to report custom syntax
659659
error messages.
660660

@@ -715,7 +715,7 @@ acts in two phases:
715715
> When defining invalid rules:
716716
>
717717
> - Make sure all custom invalid rules raise
718-
> [`SyntaxError`](https://docs.python.org/3/library/exceptions.html#SyntaxError)
718+
> [`SyntaxError`](https://docs.python.org/3/builtins/exceptions.html#SyntaxError)
719719
> exceptions (or a subclass of it).
720720
> - Make sure **all** invalid rules start with the `invalid_` prefix to not
721721
> impact performance of parsing correct Python code.
@@ -823,7 +823,7 @@ $ python -m pegen python <PATH TO YOUR GRAMMAR FILE>
823823
> Python's grammar (the `Grammar/python.gram` file) is written for the
824824
> C backend. To experiment, you will need to write a grammar
825825
> without C-specific parts like actions and the trailer.
826-
> See [#133560](https://github.com/python/cpython/issues/133560)
826+
> See [#133560](https://github.com/python/cpython/issues/133560)
827827
> and [#96424](https://github.com/python/cpython/issues/96424) for more information.
828828
829829
This will generate a file called `parse.py` in the same directory that you

InternalDocs/structure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ For builtin types, the typical layout is:
2323

2424
* `Objects/<builtin>object.c`
2525
* `Lib/test/test_<builtin>.py`
26-
* [`Doc/library/stdtypes.rst`](../Doc/library/stdtypes.rst)
26+
* [`Doc/builtins/stdtypes.rst`](../Doc/builtins/stdtypes.rst)
2727

2828
For builtin functions, the typical layout is:
2929

3030
* [`Python/bltinmodule.c`](../Python/bltinmodule.c)
3131
* [`Lib/test/test_builtin.py`](../Lib/test/test_builtin.py)
32-
* [`Doc/library/functions.rst`](../Doc/library/functions.rst)
32+
* [`Doc/builtins/functions.rst`](../Doc/builtins/functions.rst)
3333

3434
Some exceptions to these layouts are:
3535

Lib/test/test_traceback.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3904,7 +3904,7 @@ def f():
39043904
def test_dont_swallow_cause_or_context_of_falsey_exception(self):
39053905
# see gh-132308: Ensure that __cause__ or __context__ attributes of exceptions
39063906
# that evaluate as falsey are included in the output. For falsey term,
3907-
# see https://docs.python.org/3/library/stdtypes.html#truth-value-testing.
3907+
# see https://docs.python.org/3/builtins/stdtypes.html#truth-value-testing.
39083908

39093909
try:
39103910
raise FalseyException from KeyError
@@ -4123,7 +4123,7 @@ def test_comparison(self):
41234123
def test_dont_swallow_subexceptions_of_falsey_exceptiongroup(self):
41244124
# see gh-132308: Ensure that subexceptions of exception groups
41254125
# that evaluate as falsey are displayed in the output. For falsey term,
4126-
# see https://docs.python.org/3/library/stdtypes.html#truth-value-testing.
4126+
# see https://docs.python.org/3/builtins/stdtypes.html#truth-value-testing.
41274127

41284128
try:
41294129
raise FalseyExceptionGroup("Gih", (KeyError(), NameError()))

Tools/unicode/makeunicodedata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
# The Unicode Database
4444
# --------------------
4545
# When changing UCD version please update
46-
# * Doc/library/stdtypes.rst (four occurrences)
46+
# * Doc/builtins/stdtypes.rst (four occurrences)
4747
# * Doc/library/unicodedata.rst
4848
# * Doc/library/re.rst
4949
# * Doc/reference/lexical_analysis.rst (three occurrences)

0 commit comments

Comments
 (0)