New submission from Sai Bhargava Ramu saiediitm@gmail.com:
https://docs.python.org/2/library/itertools.html#itertools.combinations
#The behaviour of combinations function in documentation is different and I think identation is missing with `else` #I didn't get the logic right is point out anything further. This might not be a real issue
---------- assignee: docs@python components: Documentation files: combinations.py messages: 306499 nosy: Sai Bhargava Ramu, docs@python priority: normal severity: normal status: open title: Might be a wrong implementation type: behavior versions: Python 3.5 Added file: https://bugs.python.org/file47273/combinations.py
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue32074 _______________________________________
Serhiy Storchaka storchaka+cpython@gmail.com added the comment:
The implementation in the documentation is correct. Did you tested your implementation?
The indentation of the "else" is correct. See https://docs.python.org/3/reference/compound_stmts.html#the-for-statement
---------- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed
_______________________________________ Python tracker report@bugs.python.org https://bugs.python.org/issue32074 _______________________________________