Skip to content

bpo-38312: Add curses.{get,set}_escdelay and curses.{get,set}_tabsize#16938

Merged
serhiy-storchaka merged 1 commit intopython:masterfrom
asottile:tabsize_escdelay
Oct 31, 2019
Merged

bpo-38312: Add curses.{get,set}_escdelay and curses.{get,set}_tabsize#16938
serhiy-storchaka merged 1 commit intopython:masterfrom
asottile:tabsize_escdelay

Conversation

@asottile
Copy link
Copy Markdown
Contributor

@asottile asottile commented Oct 26, 2019

Comment thread Modules/_cursesmodule.c Outdated
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add tests and a What's New entry.

Comment thread Modules/_cursesmodule.c Outdated
@asottile
Copy link
Copy Markdown
Contributor Author

Please add tests and a What's New entry.

For tests I'm not sure it's possible to demonstrate the behaviour -- should I just call the functions and ensure they don't crash?

@serhiy-storchaka
Copy link
Copy Markdown
Member

Yes, testing that functions exist and do not crash is the minimum. Many functions in the curses module do not have better testing.

@asottile
Copy link
Copy Markdown
Contributor Author

tests and what's new added \o/ -- thanks for the review :)

@asottile asottile changed the title bpo-38312: Add curses.set_escdelay and curses.set_tabsize bpo-38312: Add curses.{get,set}_escdelay and curses.{get,set}_tabsize Oct 29, 2019
Copy link
Copy Markdown
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add also versionadded to get_escdelay and get_tabsize.

Oh, seems there is no get_tabsize in ncurses. But it is okay.

@asottile
Copy link
Copy Markdown
Contributor Author

Add also versionadded to get_escdelay and get_tabsize.

oops! added :)

@serhiy-storchaka
Copy link
Copy Markdown
Member

Thanks @asottile!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants