Bugs item #2630322, was opened at 2009-02-23 15:41 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2630322...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: rewrite Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: NicDumZ — Nicolas Dumazet (nicdumz) Assigned to: Russell Blau (russblau) Summary: pywikibot.input before pywikibot.handleArgs
Initial Comment: TestCase #2: import pywikibot goodbye = pywikibot.input('Hello ?') print 'read: ' + goodbye
Result : goodbye read: goodbye $ Comment: Expected "Hello ?" input prompt is not printed
TestCase #2 import pywikibot pywikibot.handleArgs() goodbye = pywikibot.input('Hello ?') print 'read: 'goodbye Result: Hello ? goodbye read: goodbye $ Comment: Works fine.
This behavior is a bit surprising. Sometimes scripts won't use any arguments: no reason for .handleArgs() to be called... ever :)
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2630322...
pywikipedia-l@lists.wikimedia.org