Repository navigation
Commit c8adb89
gh-162539: Document that ctypes.resize() can move the buffer
Like realloc(), resize() may move the memory block, so pointers,
byref() results and addresses taken before the call become invalid.
ctypes cannot track raw addresses, so this is documented rather than
enforced. Also document the BufferError raised while the buffer is
in use.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 752fccc commit c8adb89
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2490 | 2490 | | |
2491 | 2491 | | |
2492 | 2492 | | |
| 2493 | + | |
| 2494 | + | |
| 2495 | + | |
| 2496 | + | |
| 2497 | + | |
| 2498 | + | |
| 2499 | + | |
| 2500 | + | |
| 2501 | + | |
| 2502 | + | |
| 2503 | + | |
2493 | 2504 | | |
2494 | 2505 | | |
2495 | 2506 | | |
| |||
0 commit comments