Commit 3a08990
Cache HasClrMember and align DLR setter exception path
- Cache HasClrMember reflection per (Type, name) so tp_getattro_dlr_proxy
/ tp_setattro_dlr_proxy avoid repeated GetMember() calls on every
attribute access of DLR-aware objects.
- Mirror tp_setattro_dlr_proxy's catch arm to the getter's safer
SetError(RuntimeError, e.Message) shape instead of SetError(Exception),
keeping both slots re-entry-safe on live dynamic objects.
Related to #2706.1 parent 8b12b56 commit 3a08990
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
46 | 53 | | |
47 | 54 | | |
48 | 55 | | |
| |||
198 | 205 | | |
199 | 206 | | |
200 | 207 | | |
201 | | - | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
202 | 211 | | |
203 | 212 | | |
204 | 213 | | |
| |||
0 commit comments