Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Sep 15, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

savannahostrowski and others added 13 commits September 15, 2025 16:09
Handle ECANCELED in the same way as EINTR to work around the Posix
violation in the NetBSD's implementation.
… invalid value for macOS (GH-138089)

Signed-off-by: yihong0618 <[email protected]>
Co-authored-by: Bénédikt Tran <[email protected]>
Replace PyBytes_FromStringAndSize(NULL, size) with the new public
PyBytesWriter API.
… (os.path, collections.abc...) (GH-138268)

Co-authored-by: Łukasz Langa <[email protected]>
…rings (#138559)

* Add documentation links to datetime strftime/strptime docstrings

- Add links to format codes documentation for all strftime methods
- Add links to format codes documentation for all strptime methods
- Addresses issue #97517

* Update C extension docstrings with format codes documentation

* Regenerate clinic code for updated docstrings

* Add clinic-generated header file for updated docstrings

* Fix docstring spacing consistency in both Python and C files

* Update Lib/_pydatetime.py

Co-authored-by: Stan Ulbrych <[email protected]>

---------

Co-authored-by: Stan Ulbrych <[email protected]>
…8930)

Replace PyBytes_FromStringAndSize(NULL, size) and _PyBytes_Resize()
with the new public PyBytesWriter API.
Performance about the same, using the benchmark from gh-120754:

```
pyperf compare_to main.json pep782.json
read_file_small: Mean +- std dev: [main] 5.71 us +- 0.05 us -> [pep782] 5.68 us +- 0.05 us: 1.01x faster
read_file_large: Mean +- std dev: [main] 89.7 us +- 0.9 us -> [pep782] 86.9 us +- 0.8 us: 1.03x faster
read_all_rst_bytes: Mean +- std dev: [main] 926 us +- 8 us -> [pep782] 920 us +- 12 us: 1.01x faster
read_all_rst_text: Mean +- std dev: [main] 2.24 ms +- 0.02 ms -> [pep782] 2.17 ms +- 0.04 ms: 1.03x faster

Benchmark hidden because not significant (1): read_all_py_bytes

Geometric mean: 1.01x faster
```
Replace PyBytes_FromStringAndSize(NULL, size) with the new public
PyBytesWriter API.
@pull pull bot locked and limited conversation to collaborators Sep 15, 2025
@pull pull bot added the ⤵️ pull label Sep 15, 2025
@pull pull bot merged commit f62b495 into TechPenguineer:main Sep 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants