| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
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.
|
| |
| |
| |
| | |
The PyCursesWindow_getsets array was introduced without sentinel in c3581ca21a57.
|
| |
| |
| |
| |
| | |
when it is linked to the ncurses library. It encodes also Unicode strings to
the locale encoding instead of UTF-8.
|
|\ \
| |/
| |
| |
| |
| |
| | |
of a Unicode string.
This is an incompatible change, but putp() is used to emit terminfo commands,
which are bytes strings, not Unicode strings.
|
| |
| |
| |
| |
| |
| |
| | |
Unicode string.
This is an incompatible change, but putp() is used to emit terminfo commands,
which are bytes strings, not Unicode strings.
|
|\ \
| |/
| |
| |
| |
| | |
instead of a Unicode string.
This is an incompatible change, but the previous behaviour was completly wrong.
|
| |
| |
| |
| |
| |
| | |
Unicode string.
This is an incompatible change, but the previous behaviour was completly wrong.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
|
| | |
|
| |
| |
| |
| | |
Push a character so the next get_wch() will return it.
|
| |
| |
| |
| | |
Code extracted from Victor Stinner's patch for issue #12567.
|