Commit 76abd99
committed
gh-148223: Avoid unnecessary NotShareableError in XIData FULL_FALLBACK
Skip _get_xidata() for types not in the XIData registry when using
the FULL_FALLBACK path in _PyObject_GetXIData(). This avoids creating
and discarding a NotShareableError exception on every successful pickle
fallback transfer.
Registered types (None, bool, int, float, str, bytes, tuple) still
follow the existing path unchanged. On total failure, the same
NotShareableError is raised as before.1 parent a4d9d64 commit 76abd99
File tree
2 files changed
+40
-7
lines changed- Misc/NEWS.d/next/Core_and_Builtins
- Python
2 files changed
+40
-7
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
539 | | - | |
540 | | - | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
541 | 545 | | |
542 | | - | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
543 | 571 | | |
544 | 572 | | |
545 | | - | |
546 | 573 | | |
547 | 574 | | |
548 | 575 | | |
549 | 576 | | |
550 | 577 | | |
551 | 578 | | |
552 | | - | |
553 | 579 | | |
554 | 580 | | |
555 | | - | |
556 | | - | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
557 | 585 | | |
| 586 | + | |
558 | 587 | | |
559 | 588 | | |
560 | 589 | | |
| |||
0 commit comments