mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
Close #19762: Fix name of _get_traces() and _get_object_traceback() function
name in their docstring. Patch written by Vajrasky Kok.
This commit is contained in:
parent
1b28be4330
commit
4fbefdb217
1 changed files with 2 additions and 2 deletions
|
@ -1018,7 +1018,7 @@ tracemalloc_pyobject_decref_cb(_Py_hashtable_entry_t *entry, void *user_data)
|
||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(tracemalloc_get_traces_doc,
|
PyDoc_STRVAR(tracemalloc_get_traces_doc,
|
||||||
"get_traces() -> list\n"
|
"_get_traces() -> list\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Get traces of all memory blocks allocated by Python.\n"
|
"Get traces of all memory blocks allocated by Python.\n"
|
||||||
"Return a list of (size: int, traceback: tuple) tuples.\n"
|
"Return a list of (size: int, traceback: tuple) tuples.\n"
|
||||||
|
@ -1083,7 +1083,7 @@ finally:
|
||||||
}
|
}
|
||||||
|
|
||||||
PyDoc_STRVAR(tracemalloc_get_object_traceback_doc,
|
PyDoc_STRVAR(tracemalloc_get_object_traceback_doc,
|
||||||
"get_object_traceback(obj)\n"
|
"_get_object_traceback(obj)\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Get the traceback where the Python object obj was allocated.\n"
|
"Get the traceback where the Python object obj was allocated.\n"
|
||||||
"Return a tuple of (filename: str, lineno: int) tuples.\n"
|
"Return a tuple of (filename: str, lineno: int) tuples.\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue