Skip to content

Commit 1775baf

Browse files
authored
Use links to latest CPython stable release in docs (#5366)
* Use links to latest CPython stable release in docs * fix link to CPython github
1 parent acaa2be commit 1775baf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ automated tooling because:
3737
- it gives us best control about how to adapt C conventions to Rust, and
3838
- there are many Python interpreter versions we support in a single set of files.
3939

40-
We aim to provide straight-forward Rust wrappers resembling the file structure of [`cpython/Include`](https://github.com/python/cpython/tree/3.13/Include).
40+
We aim to provide straight-forward Rust wrappers resembling the file structure of [`cpython/Include`](https://github.com/python/cpython/tree/main/Include).
4141

4242
We are continuously updating the module to match the latest CPython version which PyO3 supports (i.e. as of time of writing Python 3.13). The tracking issue is [#1289](https://github.com/PyO3/pyo3/issues/1289), and contribution is welcome.
4343

guide/src/function.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ The `#[pyo3]` attribute can be used to modify properties of the generated Python
9595
```
9696
- <a id="warn"></a> `#[pyo3(warn(message = "...", category = ...))]`
9797

98-
This option is used to display a warning when the function is used in Python. It is equivalent to [`warnings.warn(message, category)`](https://docs.python.org/3.13/library/warnings.html#warnings.warn).
99-
The `message` parameter is a string that will be displayed when the function is called, and the `category` parameter is optional and has to be a subclass of [`Warning`](https://docs.python.org/3.12/library/exceptions.html#Warning).
100-
When the `category` parameter is not provided, the warning will be defaulted to [`UserWarning`](https://docs.python.org/3.12/library/exceptions.html#UserWarning).
98+
This option is used to display a warning when the function is used in Python. It is equivalent to [`warnings.warn(message, category)`](https://docs.python.org/3/library/warnings.html#warnings.warn).
99+
The `message` parameter is a string that will be displayed when the function is called, and the `category` parameter is optional and has to be a subclass of [`Warning`](https://docs.python.org/3/library/exceptions.html#Warning).
100+
When the `category` parameter is not provided, the warning will be defaulted to [`UserWarning`](https://docs.python.org/3/library/exceptions.html#UserWarning).
101101

102102
> Note: when used with `#[pymethods]`, this attribute does not work with `#[classattr]` nor `__traverse__` magic method.
103103

0 commit comments

Comments
 (0)