Xqt created this task.
Xqt added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
**List of steps to reproduce** (step by step, including full links if
applicable):
- Add a print statement in front of the early return in line 925
- use this code snippet:
>>> import pwb, pywikibot as py
>>> from pywikibot.tools import intersect_generators as isg
>>> list(isg('B', 'ABBBBBBBBBBBBBBBBBBBB'))
[B]
>>> list(isg('B', 'ABBBBBBBBBBBBBBBBBBBB', allow_duplicates=True))
['B']
**What happens?**:
The print statement is never printed and the early return is never used.
Anyway the result is as expected.
**What should have happened instead?**:
Early return the function if there is only one active iterable and the
counter has no remaining entry of the other iterables
TASK DETAIL
https://phabricator.wikimedia.org/T293276
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: matej_suchanek, Aklapper, Mpaa, Xqt, pywikibot-bugs-list, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS,
Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti,
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]