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):
The default parameter description is
:param default: The result if no answer was entered. It must not be in the
valid answers and can be disabled by setting it to None.
**What happens?**:
Any default which is not in the list is ignored and the input went into a
loop (except force is given)
input_list_choice('Frage?', ['foo', 'bar', None], default=0)
1: foo
2: bar
3: None
Frage?
Frage? 0
**What should have happened instead?**:
The function should return default (0) instead
TASK DETAIL
https://phabricator.wikimedia.org/T305937
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, pywikibot-bugs-list, Xqt, 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]