Xqt created this task. Herald added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION Description for ui.input_choice says: > length answer and a shortcut of only one character. The shortcut > must not appear in the answer. Alternatively they may be a > Option (or subclass) instance. ChoiceException instances which have but it doesn't work: >>> import pwb, pywikibot as py >>> option = ['foo', 'bar'] >>> from pywikibot.bot_choice import ListOption >>> lo = ListOption(option) >>> py.input_choice('?', lo) Traceback (most recent call last): File "<pyshell#7>", line 1, in <module> py.input_choice('?', lo) File "pywikibot\bot.py", line 422, in input_choice automatic_quit=automatic_quit, force=force) File "pywikibot\userinterfaces\terminal_interface_base.py", line 332, in input_choice options = list(options) TypeError: 'ListOption' object is not iterable TASK DETAIL https://phabricator.wikimedia.org/T129777 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Aklapper, pywikibot-bugs-list, XZise, Xqt, codynguyen1116, jayvdb _______________________________________________ pywikibot-bugs mailing list pywikibot-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs