New submission from Vajrasky Kok: >>> import _tracemalloc >>> _tracemalloc._get_object_traceback.__doc__ 'get_object_traceback(obj)\n\nGet the traceback where the Python object obj was allocated.\nReturn a tuple of (filename: str, lineno: int) tuples.\n\nReturn None if the tracemalloc module is disabled or did not\ntrace the allocation of the object.' >>> _tracemalloc._get_traces.__doc__ 'get_traces() -> list\n\nGet traces of all memory blocks allocated by Python.\nReturn a list of (size: int, traceback: tuple) tuples.\ntraceback is a tuple of (filename: str, lineno: int) tuples.\n\nReturn an empty list if the tracemalloc module is disabled.'
---------- assignee: docs@python components: Documentation, Extension Modules files: fix_doc__tracemalloc.patch keywords: patch messages: 204293 nosy: docs@python, haypo, vajrasky priority: normal severity: normal status: open title: Incorrect function documentation of _get_object_traceback and _get_traces in _tracemalloc module versions: Python 3.4 Added file: http://bugs.python.org/file32827/fix_doc__tracemalloc.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19762> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com