mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #20326: Argument Clinic now uses a simple, unique signature to
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).
This commit is contained in:
parent
eecbbad89b
commit
581ee3618c
37 changed files with 497 additions and 412 deletions
|
@ -540,7 +540,7 @@ Matches zero or more characters at the beginning of the string.
|
|||
[clinic start generated code]*/
|
||||
|
||||
PyDoc_STRVAR(pattern_match__doc__,
|
||||
"match(self, pattern, pos=0, endpos=sys.maxsize)\n"
|
||||
"sig=($self, pattern, pos=0, endpos=sys.maxsize)\n"
|
||||
"Matches zero or more characters at the beginning of the string.");
|
||||
|
||||
#define PATTERN_MATCH_METHODDEF \
|
||||
|
@ -570,7 +570,7 @@ exit:
|
|||
|
||||
static PyObject *
|
||||
pattern_match_impl(PatternObject *self, PyObject *pattern, Py_ssize_t pos, Py_ssize_t endpos)
|
||||
/*[clinic end generated code: checksum=4a3865d13638cb7c13dcae1fe58c1a9c35071998]*/
|
||||
/*[clinic end generated code: output=9f5b785661677848 input=26f9fd31befe46b9]*/
|
||||
{
|
||||
SRE_STATE state;
|
||||
Py_ssize_t status;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue