mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
#8030: more docstring fix for builtin types.
This commit is contained in:
parent
613c7a549a
commit
fb501123e3
3 changed files with 7 additions and 7 deletions
|
|
@ -681,10 +681,10 @@ tuple_subtype_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
|||
}
|
||||
|
||||
PyDoc_STRVAR(tuple_doc,
|
||||
"tuple() -> an empty tuple\n"
|
||||
"tuple(sequence) -> tuple initialized from sequence's items\n"
|
||||
"\n"
|
||||
"If the argument is a tuple, the return value is the same object.");
|
||||
"tuple() -> empty tuple\n\
|
||||
tuple(iterable) -> tuple initialized from iterable's items\n\
|
||||
\n\
|
||||
If the argument is a tuple, the return value is the same object.");
|
||||
|
||||
static PySequenceMethods tuple_as_sequence = {
|
||||
(lenfunc)tuplelength, /* sq_length */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue