-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-100616: Document 'attr' parameter for window.vline() in curses module #24961
gh-100616: Document 'attr' parameter for window.vline() in curses module #24961
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This PR is stale because it has been open for 30 days with no activity. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think documenting a new parameter does need a NEWS entry and bpo link.
Also, the documentation should say what this parameter does.
Doc/library/curses.rst
Outdated
.. method:: window.vline(ch, n) | ||
window.vline(y, x, ch, n) | ||
.. method:: window.vline(ch, n[, attr]) | ||
window.vline(y, x, ch, n[, attr]) | ||
|
||
Display a vertical line starting at ``(y, x)`` with length *n* consisting of the | ||
character *ch*. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
character *ch*. | |
character *ch* with attributes *attr*. |
Following wording from https://github.com/python/cpython/blame/894f2c3c161933bd820ad322b3b678d89bc2377c/Doc/library/curses.rst#L710 (also tested and attr does exist, and its values are per the table right under this section.
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
Most changes to Python require a NEWS entry. Please add it using the blurb_it web app or the blurb command-line tool. |
Thanks @mathieui for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
GH-100625 is a backport of this pull request to the 3.11 branch. |
GH-100626 is a backport of this pull request to the 3.10 branch. |
…es module (pythonGH-24961) (cherry picked from commit f4fcfdf) Co-authored-by: mathieui <mathieui@users.noreply.github.com> Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
…es module (pythonGH-24961) (cherry picked from commit f4fcfdf) Co-authored-by: mathieui <mathieui@users.noreply.github.com> Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
This adds the optional "attr" to the documentation, as it has worked since forever and is also present in the tsts, I do not believe this is significant enough to warrant an issue.