python / cpython

The Python programming language
https://www.python.org
Other
63.4k stars 30.36k forks source link

PrettyPrinter docs is incomplete #60793

Closed f12c75cc-3892-46c3-b71c-09a963bfc7b4 closed 11 years ago

f12c75cc-3892-46c3-b71c-09a963bfc7b4 commented 11 years ago
BPO 16589
Nosy @ezio-melotti

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields: ```python assignee = 'https://github.com/ezio-melotti' closed_at = created_at = labels = ['type-feature', 'docs'] title = 'PrettyPrinter docs is incomplete' updated_at = user = 'https://bugs.python.org/mindrones' ``` bugs.python.org fields: ```python activity = actor = 'ezio.melotti' assignee = 'ezio.melotti' closed = True closed_date = closer = 'ezio.melotti' components = ['Documentation'] creation = creator = 'mindrones' dependencies = [] files = [] hgrepos = [] issue_num = 16589 keywords = [] message_count = 3.0 messages = ['176745', '176746', '176747'] nosy_count = 4.0 nosy_names = ['ezio.melotti', 'docs@python', 'python-dev', 'mindrones'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue16589' versions = ['Python 2.7'] ```

f12c75cc-3892-46c3-b71c-09a963bfc7b4 commented 11 years ago

Hi,

at http://docs.python.org/2.7/library/pprint.html#pprint.PrettyPrinter we see: "class pprint.PrettyPrinter(...)"

while at http://docs.python.org/3.3/library/pprint.html#pprint.PrettyPrinter we see:
"class pprint.PrettyPrinter(indent=1, width=80, depth=None, stream=None)"

I think the first case is a bug.

Regards, Luca

1762cc99-3127-4a62-9baf-30c3d0f51ef7 commented 11 years ago

New changeset 62fed5f18681 by Ezio Melotti in branch '2.7': bpo-16589: fix pprint signatures in the doc (backport of 106ee4eb5970). http://hg.python.org/cpython/rev/62fed5f18681

ezio-melotti commented 11 years ago

Fixed, thanks for the report!