- Notifications
You must be signed in to change notification settings - Fork5
Commitc76a4f8
committed
Catch null pointer returns from PyCObject_AsVoidPtr and PyCObject_FromVoidPtr
This is reproducibly possible in Python 2.7 if the user turnedPendingDeprecationWarning into an error, but it's theoretically also possiblein earlier versions in case of exceptional conditions.backpatched to 8.01 parent52ba9a5 commitc76a4f8
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
| 4 | + | |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
| |||
1315 | 1315 |
| |
1316 | 1316 |
| |
1317 | 1317 |
| |
| 1318 | + | |
| 1319 | + | |
1318 | 1320 |
| |
1319 | 1321 |
| |
1320 | 1322 |
| |
| |||
1539 | 1541 |
| |
1540 | 1542 |
| |
1541 | 1543 |
| |
| 1544 | + | |
1542 | 1545 |
| |
1543 | 1546 |
| |
| 1547 | + | |
| 1548 | + | |
1544 | 1549 |
| |
1545 | 1550 |
| |
1546 | 1551 |
| |
|
0 commit comments
Comments
(0)