Commit aa0a73d
authored
When __getattr__ is defined, python with try to find an attribute using _PyObject_GenericGetAttrWithDict
find nothing is reasonable so we don't need an exception, it will hurt performance.
1 parent 5ffdaf7 commit aa0a73d
File tree
4 files changed
+14
-3
lines changed- Include/internal
- Misc/NEWS.d/next/Core and Builtins
- Objects
4 files changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| 373 | + | |
373 | 374 | | |
374 | 375 | | |
375 | 376 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1405 | 1405 | | |
1406 | 1406 | | |
1407 | 1407 | | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
1408 | 1414 | | |
1409 | 1415 | | |
1410 | 1416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8247 | 8247 | | |
8248 | 8248 | | |
8249 | 8249 | | |
8250 | | - | |
| 8250 | + | |
| 8251 | + | |
8251 | 8252 | | |
8252 | 8253 | | |
8253 | 8254 | | |
8254 | 8255 | | |
8255 | 8256 | | |
8256 | | - | |
8257 | | - | |
| 8257 | + | |
| 8258 | + | |
| 8259 | + | |
| 8260 | + | |
8258 | 8261 | | |
8259 | 8262 | | |
8260 | 8263 | | |
| |||
0 commit comments