Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Doc/extending/extending.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,7 @@ Finally it should be mentioned that Capsules offer additional functionality,
which is especially useful for memory allocation and deallocation of the pointer
stored in a Capsule. The details are described in the Python/C API Reference
Manual in the section :ref:`capsules` and in the implementation of Capsules (files
:file:`Include/pycapsule.h` and :file:`Objects/pycapsule.c` in the Python source
:file:`Include/pycapsule.h` and :file:`Objects/capsule.c` in the Python source
code distribution).

.. rubric:: Footnotes
Expand Down
4 changes: 2 additions & 2 deletions Doc/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1941,8 +1941,8 @@ always available. Unless explicitly noted otherwise, all variables are read-only
The interpreter is about to execute a new line of code or re-execute the
condition of a loop. The local trace function is called; *arg* is
``None``; the return value specifies the new local trace function. See
:file:`Objects/lnotab_notes.txt` for a detailed explanation of how this
works.
:source:`InternalDocs/code_objects.md` for a detailed explanation of how
this works.
Per-line events may be disabled for a frame by setting
:attr:`~frame.f_trace_lines` to :const:`False` on that
:ref:`frame <frame-objects>`.
Expand Down
10 changes: 5 additions & 5 deletions Doc/using/android.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ much easier experience:
* `Termux <https://termux.dev/en/>`__

If you're sure you want to do all of this manually, read on. You can use the
:source:`testbed app <Android/testbed>` as a guide; each step below contains a
:source:`testbed app <Platforms/Android/testbed>` as a guide; each step below contains a
link to the relevant file.

* First, acquire a build of Python for Android:
Expand All @@ -47,10 +47,10 @@ link to the relevant file.
mentioned below is at the top level of the package.

* Or if you want to build it yourself, follow the instructions in
:source:`Android/README.md`. The ``prefix`` directory will be created under
:source:`Platforms/Android/README.md`. The ``prefix`` directory will be created under
:samp:`cross-build/{HOST}`.

* Add code to your :source:`build.gradle <Android/testbed/app/build.gradle.kts>`
* Add code to your :source:`build.gradle <Platforms/Android/testbed/app/build.gradle.kts>`
file to copy the following items into your project. All except your own Python
code can be copied from ``prefix/lib``:

Expand All @@ -65,10 +65,10 @@ link to the relevant file.
* ``python*.*/site-packages`` (your own Python code)

* Add code to your app to :source:`extract the assets to the filesystem
<Android/testbed/app/src/main/java/org/python/testbed/MainActivity.kt>`.
<Platforms/Android/testbed/app/src/main/java/org/python/testbed/MainActivity.kt>`.

* Add code to your app to :source:`start Python in embedded mode
<Android/testbed/app/src/main/c/main_activity.c>`. This will need to be C code
<Platforms/Android/testbed/app/src/main/c/main_activity.c>`. This will need to be C code
called via JNI.

Building a Python package for Android
Expand Down
2 changes: 1 addition & 1 deletion Doc/using/configure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ See :source:`Mac/README.rst`.
iOS Options
-----------

See :source:`iOS/README.rst`.
See :source:`Platforms/Apple/iOS/README.md`.

.. option:: --enable-framework=INSTALLDIR

Expand Down
10 changes: 5 additions & 5 deletions Doc/using/ios.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ helpful.
To add Python to an iOS Xcode project:

1. Build or obtain a Python ``XCFramework``. See the instructions in
:source:`Apple/iOS/README.md` (in the CPython source distribution) for details on
:source:`Platforms/Apple/iOS/README.md` (in the CPython source distribution) for details on
how to build a Python ``XCFramework``. At a minimum, you will need a build
that supports ``arm64-apple-ios``, plus one of either
``arm64-apple-ios-simulator`` or ``x86_64-apple-ios-simulator``.
Expand Down Expand Up @@ -266,13 +266,13 @@ modules in your app, some additional steps will be required:
Testing a Python package
------------------------

The CPython source tree contains :source:`a testbed project <Apple/iOS/testbed>` that
The CPython source tree contains :source:`a testbed project <Platforms/Apple/testbed>` that
is used to run the CPython test suite on the iOS simulator. This testbed can also
be used as a testbed project for running your Python library's test suite on iOS.

After building or obtaining an iOS XCFramework (see :source:`Apple/iOS/README.md`
After building or obtaining an iOS XCFramework (see :source:`Platforms/Apple/iOS/README.md`
for details), create a clone of the Python iOS testbed project. If you used the
``Apple`` build script to build the XCframework, you can run:
``Platforms/Apple`` build script to build the XCframework, you can run:

.. code-block:: bash

Expand All @@ -282,7 +282,7 @@ Or, if you've sourced your own XCframework, by running:

.. code-block:: bash

$ python Apple/testbed clone --platform iOS --framework <path/to/Python.xcframework> --app <path/to/module1> --app <path/to/module2> app-testbed
$ python Platforms/Apple/testbed clone --platform iOS --framework <path/to/Python.xcframework> --app <path/to/module1> --app <path/to/module2> app-testbed

Any folders specified with the ``--app`` flag will be copied into the cloned
testbed project. The resulting testbed will be created in the ``app-testbed``
Expand Down
2 changes: 1 addition & 1 deletion InternalDocs/code_objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Note that traceback objects don't store all this information -- they store the s
number, for backward compatibility, and the "last instruction" value.
The rest can be computed from the last instruction (`tb_lasti`) with the help of the
locations table. For Python code, there is a convenience method
(`codeobject.co_positions`)[https://docs.python.org/dev/reference/datamodel.html#codeobject.co_positions]
[`codeobject.co_positions`](https://docs.python.org/dev/reference/datamodel.html#codeobject.co_positions)
which returns an iterator of `({line}, {endline}, {column}, {endcolumn})` tuples,
one per instruction.
There is also `co_lines()` which returns an iterator of `({start}, {end}, {line})` tuples,
Expand Down
2 changes: 1 addition & 1 deletion InternalDocs/jit.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ template file [`Tools/jit/template.c`](../Tools/jit/template.c).
Each of the `.c` files is compiled by LLVM, to produce an object file
that contains a function that executes the opcode. These compiled
functions are used to generate the file
[`jit_stencils.h`](../jit_stencils.h), which contains the functions
`jit_stencils.h`, which contains the functions
that the JIT can use to emit code for each of the bytecodes.

For Python maintainers this means that changes to the bytecodes and
Expand Down
Loading