| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
(cherry picked from commit 83cb778b4a3f856f2243b0f0d36fefb5c44b388f)
|
|
|
|
|
| |
(GH-4220) (#4221)
(cherry picked from commit 4f469c096628af730b17798d0ebfd8925bfde836)
|
|
|
|
|
|
|
| |
earlier. (GH-3826) (#4218)
Skip a test for unget_wch()/get_wch() on OpenBSD since they are broken
in ncurses 5.7.
(cherry picked from commit 7e68790f3db75a893d5dd336e6201a63bc70212b)
|
|
|
| |
(cherry picked from commit 894ebd065e02debf20c0657d26020ecc42b7534f)
|
|
|
|
|
|
|
|
|
|
|
| |
(#4212)
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().
(cherry picked from commit 8bc7d63560024681dce9f40445f2877b2987e92c)
|
|
|
| |
(cherry picked from commit baac01e629d90f63dfde6b5cc433f4bc65c5feeb)
|
|
|
|
|
|
|
|
|
|
| |
(GH-2302) (#2462)
Based on patch by Victor Stinner.
Add private C API function _PyUnicode_AsUnicode() which is similar to
PyUnicode_AsUnicode(), but checks for null characters..
(cherry picked from commit f7eae0adfcd4c50034281b2c69f461b43b68db84)
|
|
|
|
|
|
|
| |
(GH-2285) (#2443)
Raise a ValueError if the second argument is NULL and the wchar_t\*
string contains null characters..
(cherry picked from commit e613e6add5f07ff6aad5802924596b631b707d2a)
|
|
|
|
|
| |
Set name to "_curses.window" instead of "_curses.curses window" (with
a space!?).
(cherry picked from commit 61e2bc74dfab1ceee332d3f480dcf86c478c87c5)
|
|\ |
|
| | |
|
|\ \
| |/
| |
| |
| | |
PyUnicode_AsEncodedObject() in _curese to ensure that the result
is a bytes object.
|
| |
| |
| |
| |
| | |
PyUnicode_AsEncodedObject() in _curese to ensure that the result
is a bytes object.
|
|/
|
|
| |
Directly pass NULL rather than an empty string.
|
|\ |
|
| | |
|
|\ \
| |/ |
|
| | |
|
| | |
|
| | |
|
| | |
|
|/
|
|
| |
Corresponding functions now accept `const char *` (issue #1772673).
|
|
|
|
| |
In porting to Argument Clinic, the first two arguments were reversed.
|
|
|
|
|
| |
including correctly generating code for Clinic blocks inside C
preprocessor conditional blocks.
|
|
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
docstring for __new__ and __init__, and always use "goto exit" instead of
returning "NULL" for failure to parse (as _new__ and __init__ return ints).
|
|\
| |
| |
| |
| |
| |
| | |
versions.
Removed backward compatibility alias curses.window.nooutrefresh which should
be removed in 2.3.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |
| |
| |
| | |
to improve readability.
|
|\ \
| |/ |
|
| | |
|
| |
| |
| |
| | |
for some builtins.
|
| |
| |
| |
| | |
variables in option groups, to prevent "uninitialized value" warnings.
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
are used.
Move also _Py_IDENTIFIER() defintions to the top in modified files to remove
identifiers duplicated in the same file.
|
| |
| |
| |
| |
| |
| |
| | |
instead of creating temporary Unicode string objects
Add also more identifiers in pythonrun.c to avoid temporary Unicode string
objets for the interactive interpreter.
|
| | |
|
| |
| |
| |
| | |
for C files to generate argument parsing code. (See PEP 436.)
|
| |
| |
| |
| |
| | |
are now created non-inheritable; add functions os.get/set_inheritable(),
os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
|
|\ \
| |/
| |
| | |
CID 1058276
|
| |
| |
| |
| | |
CID 1058276
|
| |
| |
| |
| |
| | |
Replace strdup() with _PyMem_RawStrdup() or _PyMem_Strdup(), depending if the
GIL is held or not.
|
| |
| |
| |
| |
| | |
Replace malloc() with PyMem_Malloc() when the GIL is held, or with
PyMem_RawMalloc() otherwise.
|
|/
|
|
| |
multiprocessing.h: remove unused MIN and MAX macros
|
| |
|
|
|
|
| |
KeyboardInterrupt (CTRL+c)
|
|\
| |
| |
| |
| |
| | |
I have no idea how one would write a test for this.
Patch by July Tikhonov.
|
| |
| |
| |
| |
| |
| | |
I have no idea how one would write a test for this.
Patch by July Tikhonov.
|