Repository navigation
Commit 1138129
Implement pyexpat character buffering and callback-safe flushes (#9838)
* Implement pyexpat character buffering and callback-safe flushes
Port the Python-facing buffer API and flush ordering from CPython 3.15.2, preserve external parser configuration, and stop callbacks coherently on handler exceptions. Enable three canonical tests and extend existing pyexpat regressions without manufacturing backend event boundaries.
Assisted-by: OpenAI Codex:GPT-6.1
* Guard callback-safe pyexpat regressions on older CPython hosts
CPython 3.15.0 retains pending character data during callbacks. Keep callback mutation regressions enabled on RustPython and fixed CPython, without skipping common buffer APIs or exception propagation.
Assisted-by: OpenAI Codex:GPT-6.1
* Route XML declaration callbacks through buffered error cleanup
Preserve callback abort semantics when integrating the native encoding changes from main.
Assisted-by: OpenAI Codex
---------
Co-authored-by: Codex <[email protected]>1 parent a6ac088 commit 1138129
3 files changed
Lines changed: 486 additions & 74 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
510 | 509 | | |
511 | 510 | | |
512 | 511 | | |
| |||
524 | 523 | | |
525 | 524 | | |
526 | 525 | | |
527 | | - | |
528 | 526 | | |
529 | 527 | | |
530 | 528 | | |
| |||
732 | 730 | | |
733 | 731 | | |
734 | 732 | | |
735 | | - | |
736 | 733 | | |
737 | 734 | | |
738 | 735 | | |
| |||
0 commit comments