Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-20171: Convert the _curses and _curses_panel modules to Argument Clinic. ↵ | Serhiy Storchaka | 2018-05-10 | 1 | -1184/+2238 |
| | | | | (GH-4251) | ||||
* | correct the typos (#4950) | Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) | 2017-12-20 | 1 | -2/+2 |
| | |||||
* | Add the const qualifier to "char *" variables that refer to literal strings. ↵ | Serhiy Storchaka | 2017-11-11 | 1 | -2/+2 |
| | | | | (#4370) | ||||
* | bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse(). ↵ | Serhiy Storchaka | 2017-11-01 | 1 | -12/+26 |
| | | | | (#4220) | ||||
* | bpo-15037: Add a workaround for getkey() in curses for ncurses 5.7 and ↵ | Serhiy Storchaka | 2017-11-01 | 1 | -2/+10 |
| | | | | | | earlier. (#3826) Skip a test for unget_wch()/get_wch() on OpenBSD since they are broken in ncurses 5.7. | ||||
* | bpo-31919: Fix building the curses module on OpenIndiana. (#4211) | Serhiy Storchaka | 2017-11-01 | 1 | -2/+4 |
| | |||||
* | bpo-25720: Fix the method for checking pad state of curses WINDOW (#4164) | Masayuki Yamamoto | 2017-11-01 | 1 | -8/+16 |
| | | | | | | | | | Modify the code to use ncurses is_pad() instead of checking WINDOW _flags field. If your platform does not provide the is_pad(), the existing way that checks the field will be enabled. Note: This change does not drop support for platforms where do not have both WINDOW _flags field and is_pad(). | ||||
* | bpo-31891: Fix building the curses module on NetBSD. (#4165) | Serhiy Storchaka | 2017-10-31 | 1 | -33/+40 |
| | |||||
* | [security] bpo-13617: Reject embedded null characters in wchar* strings. (#2302) | Serhiy Storchaka | 2017-06-28 | 1 | -0/+10 |
| | | | | | | | Based on patch by Victor Stinner. Add private C API function _PyUnicode_AsUnicode() which is similar to PyUnicode_AsUnicode(), but checks for null characters. | ||||
* | bpo-30176: Add missing curses cell attributes constants (GH-1302) | Xiang Zhang | 2017-06-16 | 1 | -3/+5 |
| | |||||
* | bpo-30101: Add support for curses.A_ITALIC. (#1015) | Eijebong | 2017-04-26 | 1 | -0/+3 |
| | |||||
* | Use NULL rather than 0. (#778) | Serhiy Storchaka | 2017-03-23 | 1 | -1/+1 |
| | | | | | There was few cases of using literal 0 instead of NULL in the context of pointers. While this was a legitimate C code, using NULL rather than 0 makes the code clearer. | ||||
* | bpo-29176 Use tmpfile() in curses module (#235) | Christian Heimes | 2017-03-02 | 1 | -37/+15 |
| | | | | | | | | | | | The curses module used mkstemp() + fopen() to create a temporary file in /tmp. The /tmp directory does not exist on Android. The tmpfile() function simplifies the task a lot. It creates a temporary file in a correct directory, takes care of cleanup and returns FILE*. tmpfile is supported on all platforms (C89, POSIX 2001, Android, Windows). Signed-off-by: Christian Heimes <christian@python.org> | ||||
* | bpo-29176: Fix name of the _curses.window class (#52) | Victor Stinner | 2017-02-12 | 1 | -1/+1 |
| | | | | Set name to "_curses.window" instead of "_curses.curses window" (with a space!?). | ||||
* | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever | Serhiy Storchaka | 2017-01-23 | 1 | -40/+22 |
| | | | | possible. Patch is writen with Coccinelle. | ||||
* | Initialize variables to fix compiler warnings | Victor Stinner | 2016-12-09 | 1 | -1/+1 |
| | | | | | Warnings seen on the "AMD64 Debian PGO 3.x" buildbot. Warnings are false positive, but variable initialization should not harm performances. | ||||
* | Issue #28549: Fixed segfault in curses's addch() with ncurses6. | Serhiy Storchaka | 2016-10-30 | 1 | -8/+9 |
|\ | |||||
| * | Issue #28549: Fixed segfault in curses's addch() with ncurses6. | Serhiy Storchaka | 2016-10-30 | 1 | -8/+9 |
| | | |||||
* | | Issue #28526: Use PyUnicode_AsEncodedString() instead of | Serhiy Storchaka | 2016-10-27 | 1 | -2/+2 |
|\ \ | |/ | | | | | | | PyUnicode_AsEncodedObject() in _curese to ensure that the result is a bytes object. | ||||
| * | Issue #28526: Use PyUnicode_AsEncodedString() instead of | Serhiy Storchaka | 2016-10-27 | 1 | -2/+2 |
| | | | | | | | | | | PyUnicode_AsEncodedObject() in _curese to ensure that the result is a bytes object. | ||||
* | | Avoid calling functions with an empty string as format string | Victor Stinner | 2016-09-06 | 1 | -1/+1 |
|/ | | | | Directly pass NULL rather than an empty string. | ||||
* | merge 3.4 | Benjamin Peterson | 2016-08-16 | 1 | -0/+8 |
|\ | |||||
| * | fail when negative values are passed to instr() | Benjamin Peterson | 2016-08-16 | 1 | -0/+8 |
| | | |||||
* | | merge 3.4 | Benjamin Peterson | 2016-08-14 | 1 | -0/+8 |
|\ \ | |/ | |||||
| * | do not allow reading negative values with getstr() | Benjamin Peterson | 2016-08-14 | 1 | -0/+8 |
| | | |||||
* | | Issue #4254: Adds _curses.update_lines_cols() Patch by Arnon Yaari | Steve Dower | 2015-04-15 | 1 | -0/+10 |
| | | |||||
* | | Issue #23944: Argument Clinic now wraps long impl prototypes at column 78. | Larry Hastings | 2015-04-14 | 1 | -2/+3 |
| | | |||||
* | | Issue #23501: Argumen Clinic now generates code into separate files by default. | Serhiy Storchaka | 2015-04-03 | 1 | -67/+3 |
| | | |||||
* | | Removed redundant casts to `char *`. | Serhiy Storchaka | 2014-09-28 | 1 | -1/+1 |
|/ | | | | Corresponding functions now accept `const char *` (issue #1772673). | ||||
* | Issue #21088: Bugfix for curses.window.addch() regression in 3.4.0. | Larry Hastings | 2014-05-04 | 1 | -12/+12 |
| | | | | In porting to Argument Clinic, the first two arguments were reversed. | ||||
* | #Issue 20456: Several improvements and bugfixes for Argument Clinic, | Larry Hastings | 2014-02-01 | 1 | -2/+2 |
| | | | | | including correctly generating code for Clinic blocks inside C preprocessor conditional blocks. | ||||
* | Issue #20326: Argument Clinic now uses a simple, unique signature to | Larry Hastings | 2014-01-28 | 1 | -2/+2 |
| | | | | | | | | | | annotate text signatures in docstrings, resulting in fewer false positives. "self" parameters are also explicitly marked, allowing inspect.Signature() to authoritatively detect (and skip) said parameters. Issue #20326: Argument Clinic now generates separate checksums for the input and output sections of the block, allowing external tools to verify that the input has not changed (and thus the output is not out-of-date). | ||||
* | Issue #20390: Small fixes and improvements for Argument Clinic. | Larry Hastings | 2014-01-26 | 1 | -5/+5 |
| | |||||
* | Issue #20189: Four additional builtin types (PyTypeObject, | Larry Hastings | 2014-01-24 | 1 | -2/+2 |
| | | | | | | PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type) have been modified to provide introspection information for builtins. Also: many additional Lib, test suite, and Argument Clinic fixes. | ||||
* | Two minor Argument Clinic bugfixes: use the name of the class in the | Larry Hastings | 2014-01-22 | 1 | -6/+7 |
| | | | | | docstring for __new__ and __init__, and always use "goto exit" instead of returning "NULL" for failure to parse (as _new__ and __init__ return ints). | ||||
* | Issue #20315: Removed support for backward compatibility with early 2.x ↵ | Serhiy Storchaka | 2014-01-20 | 1 | -2/+0 |
|\ | | | | | | | | | | | | | versions. Removed backward compatibility alias curses.window.nooutrefresh which should be removed in 2.3. | ||||
* | | Issue #20226: Major improvements to Argument Clinic. | Larry Hastings | 2014-01-16 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * You may now specify an expression as the default value for a parameter! Example: "sys.maxsize - 1". This support is intentionally quite limited; you may only use values that can be represented as static C values. * Removed "doc_default", simplified support for "c_default" and "py_default". (I'm not sure we still even need "py_default", but I'm leaving it in for now in case a use presents itself.) * Parameter lines support a trailing '\\' as a line continuation character, allowing you to break up long lines. * The argument parsing code generated when supporting optional groups now uses PyTuple_GET_SIZE instead of PyTuple_GetSize, leading to a 850% speedup in parsing. (Just kidding, this is an unmeasurable difference.) * A bugfix for the recent regression where the generated prototype from pydoc for builtins would be littered with unreadable "=<object ...>"" default values for parameters that had no default value. * Converted some asserts into proper failure messages. * Many doc improvements and fixes. | ||||
* | | Issue #19273: The marker comments Argument Clinic uses have been changed | Larry Hastings | 2014-01-07 | 1 | -6/+6 |
| | | | | | | | | to improve readability. | ||||
* | | ncurses' winch and mvwinch return an unsigned long | Christian Heimes | 2013-12-04 | 1 | -2/+3 |
|\ \ | |/ | |||||
| * | ncurses' winch and mvwinch return an unsigned long | Christian Heimes | 2013-12-04 | 1 | -2/+3 |
| | | |||||
* | | Issue #19674: inspect.signature() now produces a correct signature | Larry Hastings | 2013-11-23 | 1 | -4/+8 |
| | | | | | | | | for some builtins. | ||||
* | | Issue #19474: Argument Clinic now always specifies a default value for | Larry Hastings | 2013-11-20 | 1 | -4/+4 |
| | | | | | | | | variables in option groups, to prevent "uninitialized value" warnings. | ||||
* | | Argument Clinic: rename "self" to "module" for module-level functions. | Larry Hastings | 2013-11-18 | 1 | -1/+0 |
| | | |||||
* | | Issue #19512, #19515: remove shared identifiers, move identifiers where they | Victor Stinner | 2013-11-07 | 1 | -1/+1 |
| | | | | | | | | | | | | | | are used. Move also _Py_IDENTIFIER() defintions to the top in modified files to remove identifiers duplicated in the same file. | ||||
* | | Issue #19512: add some common identifiers to only create common strings once, | Victor Stinner | 2013-11-06 | 1 | -1/+1 |
| | | | | | | | | | | | | | | instead of creating temporary Unicode string objects Add also more identifiers in pythonrun.c to avoid temporary Unicode string objets for the interactive interpreter. | ||||
* | | Fix compilation of the curses module (broken by issue #16612). | Serhiy Storchaka | 2013-10-19 | 1 | -1/+1 |
| | | |||||
* | | Issue #16612: Add "Argument Clinic", a compile-time preprocessor | Larry Hastings | 2013-10-19 | 1 | -41/+114 |
| | | | | | | | | for C files to generate argument parsing code. (See PEP 436.) | ||||
* | | Issue #18571: Implementation of the PEP 446: file descriptors and file handles | Victor Stinner | 2013-08-27 | 1 | -32/+39 |
| | | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable(). | ||||
* | | Fix possible NULL pointer dereference in PyCurses_Start_Color() | Christian Heimes | 2013-07-26 | 1 | -0/+4 |
|\ \ | |/ | | | | | CID 1058276 | ||||
| * | Fix possible NULL pointer dereference in PyCurses_Start_Color() | Christian Heimes | 2013-07-26 | 1 | -0/+4 |
| | | | | | | | | CID 1058276 |