| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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).
|
| |
| |
| |
| |
| |
| | |
instead
of zlibmodule.clinic.c
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
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).
|
| |
| |
| |
| | |
delaying its output or even redirecting it to a separate file.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* 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.
|
| |
| |
| |
| | |
Argument Clinic (see issue for details).
|
| |
| |
| |
| | |
to improve readability.
|
| |
| |
| |
| | |
initialized with a default value.
|
| | |
|
| |
| |
| |
| | |
take two parameters.
|
| | |
|
| | |
|
| |
| |
| |
| | |
for some builtins.
|
| |
| |
| |
| |
| | |
"format units" as legacy converters, as well as two new features:
"self converters" and the "version" directive.
|
| | |
|
| | |
|
| |
| |
| |
| | |
for C files to generate argument parsing code. (See PEP 436.)
|
| |
| |
| |
| |
| | |
_PyBytes_Resize(&v, new_size) sets v to NULL on error, so v cannot be used
anymore. Replace "Py_DECREF(v); v = NULL;" with "Py_CLEAR(v);".
|
| |
| |
| |
| | |
(MemoryError).
|
| |
| |
| |
| | |
value (void)
|
| | |
|
| |
| |
| |
| |
| | |
Replace malloc() with PyMem_Malloc() when the GIL is held, or with
PyMem_RawMalloc() otherwise.
|
| |
| |
| |
| | |
on Windows x64
|
| |
| |
| |
| | |
when applicable.
|
| | |
|
|\ \
| |/
| |
| |
| |
| | |
mean 'no compression'.
Patch by Brian Brazil.
|
| |\
| | |
| | |
| | |
| | |
| | | |
mean 'no compression'.
Patch by Brian Brazil.
|
| | |
| | |
| | |
| | |
| | |
| | | |
mean 'no compression'.
Patch by Brian Brazil.
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | | |
access previously-freed memory.
Patch by Serhiy Storchaka.
|
| |\ \
| | |/
| | |
| | |
| | |
| | | |
access previously-freed memory.
Patch by Serhiy Storchaka.
|
| | |
| | |
| | |
| | |
| | |
| | | |
access previously-freed memory.
Patch by Serhiy Storchaka.
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
decompressobj().flush().
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).
Patch by Serhiy Storchaka.
|
| |\ \
| | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
decompressobj().flush().
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).
Patch by Serhiy Storchaka.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
decompressobj().flush().
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).
Patch by Serhiy Storchaka.
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | | |
calls to decompress() after EOF.
Patch by Serhiy Storchaka.
|
| |\ \
| | |/
| | |
| | |
| | |
| | | |
calls to decompress() after EOF.
Patch by Serhiy Storchaka.
|
| | |
| | |
| | |
| | |
| | |
| | | |
calls to decompress() after EOF.
Patch by Serhiy Storchaka.
|
|/ / |
|
| |
| |
| |
| | |
Original patch by Jim Jewett; see issue 14684.
|
| | |
|
| |
| |
| |
| |
| |
| | |
zlib module.
Original patch by Sam Rushing.
|
| |
| |
| |
| |
| |
| | |
While we're at it, also document ZLIB_VERSION.
Patch by Torsten Landschoff.
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| | |
If the version of zlib used to compile the zlib module is incompatible
with the one that is actually linked in, then calls into zlib will fail.
This can leave attributes of the z_stream uninitialized, so we must take
care to avoid segfaulting by trying to use an invalid pointer.
Fix by Richard M. Tew.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If the version of zlib used to compile the zlib module is incompatible
with the one that is actually linked in, then calls into zlib will fail.
This can leave attributes of the z_stream uninitialized, so we must take
care to avoid segfaulting by trying to use an invalid pointer.
Fix by Richard M. Tew.
|