mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Add the curses constants ERR and OK to the module at TG's suggestion
This commit is contained in:
parent
1dea760ca1
commit
caefb37ee1
1 changed files with 3 additions and 0 deletions
|
|
@ -2464,6 +2464,9 @@ init_curses(void)
|
|||
PyDict_SetItemString(d, "__version__", v);
|
||||
Py_DECREF(v);
|
||||
|
||||
SetDictInt("ERR", ERR);
|
||||
SetDictInt("OK", OK);
|
||||
|
||||
/* Here are some attributes you can add to chars to print */
|
||||
|
||||
SetDictInt("A_ATTRIBUTES", A_ATTRIBUTES);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue