Bugs item #2630322, was opened at 2009-02-23 09:41
Message generated for change (Comment added) made by russblau
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=263032…
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: Closed
Resolution: Fixed
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 :)
----------------------------------------------------------------------
Comment By: Russell Blau (russblau)
Date:
2009-02-23 09:52
Message:
fixed in r6429
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=263032…