python / cpython

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

In itertools.product() add argument repeat to the docstring #62485

Closed 13bd9cc7-04b0-4774-9e07-8b0322e89dcc closed 11 years ago

13bd9cc7-04b0-4774-9e07-8b0322e89dcc commented 11 years ago
BPO 18285
Nosy @py-user
Files
  • issue18285.diff
  • 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 = None closed_at = created_at = labels = ['type-feature', 'docs'] title = 'In itertools.product() add argument repeat to the docstring' updated_at = user = 'https://github.com/py-user' ``` bugs.python.org fields: ```python activity = actor = 'python-dev' assignee = 'docs@python' closed = True closed_date = closer = 'python-dev' components = ['Documentation'] creation = creator = 'py.user' dependencies = [] files = ['30669'] hgrepos = [] issue_num = 18285 keywords = ['patch'] message_count = 2.0 messages = ['191658', '191679'] nosy_count = 3.0 nosy_names = ['docs@python', 'py.user', 'python-dev'] pr_nums = [] priority = 'normal' resolution = 'fixed' stage = 'resolved' status = 'closed' superseder = None type = 'enhancement' url = 'https://bugs.python.org/issue18285' versions = ['Python 3.3', 'Python 3.4'] ```

    13bd9cc7-04b0-4774-9e07-8b0322e89dcc commented 11 years ago
    >>> import itertools
    >>> print(itertools.product.__doc__)
    product(*iterables) --> product object

    Cartesian product of input iterables. Equivalent to nested for-loops. ...

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

    New changeset 1fad7a709aae by Andrew Kuchling in branch '3.3': Close bpo-18285: add 'repeat' parameter to docstring for product http://hg.python.org/cpython/rev/1fad7a709aae