Repository navigation
Commit d60658f
committed
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.1 parent a070532 commit d60658f
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