Commit 9ccfc08
committed
src/impl_: use trampoline in pyo3_module_state_init
So we can return a real error if our state ptr is null.
The upstream cpython builtins just assert non-null, so this is probably
fine
References: https://github.com/python/cpython/blob/v3.13.0/Modules/_sqlite/module.h#L80-L81
References: https://github.com/python/cpython/blob/v3.13.0/Modules/_io/_iomodule.h#L172-L173
References: https://github.com/python/cpython/blob/v3.13.0/Modules/_blake2/blake2module.c#L33-L341 parent 8936c8a commit 9ccfc08
1 file changed
+12
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
319 | 320 | | |
320 | 321 | | |
321 | 322 | | |
322 | | - | |
| 323 | + | |
| 324 | + | |
323 | 325 | | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
331 | 331 | | |
332 | | - | |
333 | | - | |
| 332 | + | |
334 | 333 | | |
335 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
336 | 337 | | |
337 | 338 | | |
338 | 339 | | |
| |||
0 commit comments