mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Rewrite the tuple() docstring to parallel the list() docstring.
This commit is contained in:
parent
9577761337
commit
1b8ca0d87a
1 changed files with 4 additions and 4 deletions
|
|
@ -522,10 +522,10 @@ tuple_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||||
}
|
}
|
||||||
|
|
||||||
static char tuple_doc[] =
|
static char tuple_doc[] =
|
||||||
"tuple(sequence) -> tuple\n\
|
"tuple() -> an empty tuple\n"
|
||||||
\n\
|
"tuple(sequence) -> tuple initialized from sequence's items\n"
|
||||||
Return a tuple whose items are the same as those of the argument sequence.\n\
|
"\n"
|
||||||
If the argument is a tuple, the return value is the same object.";
|
"If the argument is a tuple, the return value is the same object.";
|
||||||
|
|
||||||
static PySequenceMethods tuple_as_sequence = {
|
static PySequenceMethods tuple_as_sequence = {
|
||||||
(inquiry)tuplelength, /* sq_length */
|
(inquiry)tuplelength, /* sq_length */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue