| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Set name to "_curses.window" instead of "_curses.curses window" (with
a space!?).
|
|
|
|
| |
possible. Patch is writen with Coccinelle.
|
|
|
|
|
| |
Warnings seen on the "AMD64 Debian PGO 3.x" buildbot. Warnings are false
positive, but variable initialization should not harm performances.
|
|\ |
|
| | |
|
|\ \
| |/
| |
| |
| | |
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.
|
| |
| |
| |
| | |
The refleak occurred when assigning to window.encoding.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fix window.addch() of the curses module for special characters like
curses.ACS_HLINE: the Python function addch(int) and addch(bytes) is now
calling the C function waddch()/mvwaddch() (as it was done in Python 3.2),
instead of wadd_wch()/mvwadd_wch(). The Python function addch(str) is still
calling the C function wadd_wch()/mvwadd_wch() if the Python curses is linked
to libncursesw.
|
| |
| |
| |
| |
| |
| | |
character for most keys, and an integer for special keys, instead of always
returning an integer. So it is now possible to distinguish special keys like
keypad keys.
|
| | |
|
| |
| |
| |
| |
| | |
Python curses is not linked to libncursesw. It was a regression introduced in
Python 3.3a1.
|