| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
The new syntax is highly human readable while still preventing false
positives. The syntax also extends Python syntax to denote "self" and
positional-only parameters, allowing inspect.Signature objects to be
totally accurate for all supported builtins in Python 3.4.
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
| |
Some dbm header files declare the first argument as char * instead of a const char *.
|
|
|
|
| |
for some builtins.
|
|
|
|
|
| |
"format units" as legacy converters, as well as two new features:
"self converters" and the "version" directive.
|
| |
|
| |
|
|\
| |
| |
| | |
argument. Original patch by Arfrever Frehtes Taifersar Arahesis.
|
| |
| |
| |
| | |
argument. Original patch by Arfrever Frehtes Taifersar Arahesis.
|
| |
| |
| |
| | |
for C files to generate argument parsing code. (See PEP 436.)
|
| | |
|
|/ |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
Untabify C files. Will watch buildbots.
........
|
|
|
|
|
| |
type of tp_compare in a separate commit, for ease of reversion
should things go wrong.
|
|
|
|
| |
segfaults on the PPC64/Debian buildbots.
|
| |
|
|
|
|
|
|
| |
former they are converted to bytes before being written to the DB.
Closes issue 3799. Reviewed by Skip Montanaro.
|
|
|
|
|
| |
ossaudiodev, & winreg modules to return bytes objects instead of bytearray
objects.
|
|
|
|
| |
Third step: unix-only modules. Really remove the function this time.
|
| |
|
|
|
|
| |
Stop dbm from importing every dbm module when imported.
|
| |
|
| |
|
|
|