Commit a303722
committed
gh-52008: document that absolute paths can break use_errno=True in ctypes
Loading a shared library via an absolute path (e.g. CDLL('/lib/libc.so.6'))
can cause use_errno=True to silently malfunction on Linux because dlopen may
return a separate library instance with its own errno variable. Add a note
to the CDLL.use_errno parameter docs warning about this and recommending the
use of an unqualified name or ctypes.util.find_library instead.1 parent 36e4ffc commit a303722
1 file changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1524 | 1524 | | |
1525 | 1525 | | |
1526 | 1526 | | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
1527 | 1538 | | |
1528 | 1539 | | |
1529 | 1540 | | |
| |||
0 commit comments