[issue19762] Incorrect function documentation of _get_object_traceback and _get_traces in _tracemalloc module

Vajrasky Kok report at bugs.python.org
Mon Nov 25 05:41:18 CET 2013


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 at python
components: Documentation, Extension Modules
files: fix_doc__tracemalloc.patch
keywords: patch
messages: 204293
nosy: docs at 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 <report at bugs.python.org>
<http://bugs.python.org/issue19762>
_______________________________________


More information about the Python-bugs-list mailing list