Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/pyo3Public

Commite62b7cc

Browse files
davidhewitthonzaspTpt
authored
soundness for capsule reference and name (#5474)
* Add safer methods to PyCapsule that check the capsule name* soundness for `reference` and `name`* remove `reference_checked`* clippy* review feedback* SAFETY notes on unsafe blocks* return capsule name as `CapsuleName` struct* update newsfragment* review feedback* typo* clippy* fingers crossed...* Update src/types/capsule.rsCo-authored-by: Thomas Tanon <thomas@pellissier-tanon.fr>---------Co-authored-by: Jan Špaček <jan.spacek@keyrock.eu>Co-authored-by: Thomas Tanon <thomas@pellissier-tanon.fr>
1 parent9f3d51d commite62b7cc

File tree

5 files changed

+302
-98
lines changed

5 files changed

+302
-98
lines changed

‎newsfragments/5474.added.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
added checked methods into`PyCapsuleMethods`:`pointer_checked()`,`is_valid_checked()`

‎newsfragments/5474.changed.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Deprecate unchecked`PyCapsuleMethods`:`pointer()`,`reference()`,`is_valid()`
2+
Reduce lifetime of return value in`PyCapsuleMethods::reference`
3+
`PyCapsuleMethods::name` now returns`CapsuleName` wrapper instead of`&CStr`.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp