Avatar for the PyO3 user
PyO3
pyo3
BlogDocsChangelog

docs: Improves `IntoPyObject` documentation in the guides

#5835
Comparing
Cheukting:doc-5709
(
fac1cc1
) with
main
(
3ffad5a
)
CodSpeed Performance Gauge
0%
Untouched
105
Ignored
21
Skipped
1

Benchmarks

127 total
extract_str_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+3%
2 µs1.9 µs
vec_bytes_from_py_bytes_medium
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+3%
2.1 µs2.1 µs
vec_bytes_from_py_bytearray_medium
pyo3-benches/benches/bench_frompyobject.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+2%
2.9 µs2.8 µs
bench_str
pyo3-benches/benches/bench_pyclass.rs::benches::bench_pyclass
CodSpeed Performance Gauge
+2%
3.6 µs3.6 µs
decimal_via_extract
pyo3-benches/benches/bench_decimal.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
12.1 µs12 µs
extract_int_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
8.5 µs8.4 µs
call_method_1
pyo3-benches/benches/bench_call.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
696 µs688.8 µs
err_new_restore_and_fetch
pyo3-benches/benches/bench_err.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
6.5 µs6.5 µs
getattr_intern
pyo3-benches/benches/bench_intern.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
3.3 µs3.3 µs
extract_bigint_big_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
3.5 µs3.4 µs
test_none_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
11.1 µs11.1 µs
test_positional_only_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
+1%
11.3 µs11.2 µs
extract_bigint_huge_positive
pyo3-benches/benches/bench_bigint.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
+1%
11.4 µs11.3 µs
bench_call
pyo3-benches/benches/bench_pyclass.rs::benches::bench_pyclass
CodSpeed Performance Gauge
+1%
5.8 µs5.8 µs
test_class_attribute
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
12.1 µs12.1 µs
test_method_call
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
13.3 µs13.2 µs
test_static_method
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
13.5 µs13.5 µs
test_class_method
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
14.2 µs14.1 µs
test_getter
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
14.2 µs14.2 µs
test_with_typed_args_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
14.7 µs14.7 µs
extract_float_extract_fail
pyo3-benches/benches/bench_extract.rs::benches::criterion_benchmark
CodSpeed Performance Gauge
0%
8.4 µs8.4 µs
test_none_rs
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
10.2 µs10.2 µs
test_positional_only_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
10.6 µs10.6 µs
test_empty_class_init
pytests/tests/test_pyclasses.py
CodSpeed Performance Gauge
0%
21.5 µs21.4 µs
test_with_typed_args_py
pytests/tests/test_pyfunctions.py
CodSpeed Performance Gauge
0%
11 µs11 µs

Commits

Click on a commit to change the comparison range
Base
main
3ffad5a
+0.14%
Clarify `get_item` usage and update examples for field conversion customization.
5a0cde6
5 days ago
by Cheukting
+0.01%
Simplify and clarify field conversion trait documentation.
b06044d
4 days ago
by Cheukting
+0.01%
Add doc test for `#[pyo3(transparent)]` usage in `IntoPyObject` for structs and tuples.
ef76c25
4 days ago
by Cheukting
0%
Fix formatting for `pyo3(default)` in field conversion trait documentation.
e6030c1
4 days ago
by Cheukting
-0.09%
Improve documentation formatting and add `no_run` to code examples for clarity
6f57ad6
3 days ago
by Cheukting
-0.02%
Fix doc test
fac1cc1
3 days ago
by Cheukting
© 2026 CodSpeed Technology
Home Terms Privacy Docs