Skip to content

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented May 20, 2025

  • made curses buffer heap allocated instead of stack
  • change docs to explicitly mention the max buffer size
  • changing GetStr() function to behave similarly too
  • Update Doc/library/curses.rst
  • Update instr with proper return error handling
  • Update Modules/_cursesmodule.c
  • change to strlen and better memory safety
  • change from const int to Py_ssize_t
  • add mem allocation guard
  • update versionchanged to mention it was an increase.
  • explicitly use versionchanged 3.14 as that is its own branch now.

TESTED: python -m test -u curses test_curses


(cherry picked from commit aadda87)

Co-authored-by: tigerding [email protected]
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Gregory P. Smith [email protected]
Co-authored-by: Bénédikt Tran [email protected]


📚 Documentation preview 📚: https://cpython-previews--134391.org.readthedocs.build/

…getstr}` (pythonGH-134283)

* made curses buffer heap allocated instead of stack
* change docs to explicitly mention the max buffer size
* changing GetStr() function to behave similarly too
* Update Doc/library/curses.rst
* Update instr with proper return error handling
* Update Modules/_cursesmodule.c
* change to strlen and better memory safety
* change from const int to Py_ssize_t
* add mem allocation guard
* update versionchanged to mention it was an increase.
* explicitly use versionchanged 3.14 as that is its own branch now.

TESTED: `python -m test -u curses test_curses`

---------
(cherry picked from commit aadda87)

Co-authored-by: tigerding <[email protected]>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <[email protected]>
Co-authored-by: Bénédikt Tran <[email protected]>
@bedevere-app bedevere-app bot added the sprint label May 20, 2025
@gpshead gpshead merged commit 04829d4 into python:3.14 May 20, 2025
46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants