Bugs item #573174, was opened at 2002-06-24 11:40 Message generated for change (Comment added) made by etrepum You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=573174&group_id=5470
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: Macintosh Group: Platform-specific >Status: Closed >Resolution: Wont Fix Priority: 5 Submitted By: Carl Hagelberg (chagel) Assigned to: Just van Rossum (jvr) Summary: Mac IDE behaviour (output to console) Initial Comment: On woensdag, juni 5, 2002, at 05:15 , Carl Hagelberg wrote: > Hi Jack, > > There's a difference between the result of the following > example when using > the interactive window and a 'program window' using the "Run > all" button > (OSX): > > a, b = 0, 1 > while b < 1000: > print b, > a, b = b, a+b > > > With out the "," after 'print b' they both work the same. With > the comma > only the interactive window works. Is there a syntax issue in > the program > window? Carl, this is a "known issue", but unfortunately one that is difficult to fix. The IDE flushes output to the console window on end-of-line only. It has no knowledge of the print statement, it just sees a stream of characters, and it can flush either (a) at ever character or (b) at every end-of-line. The first would make it horrendously inefficient, so it does the latter. Put one "print" without the comma at the end and everything will be printed. But: this bug should be noted in the sourceforge bug list. Could you please add it (category Macintosh, assign it to me or Just (jvr))? -- - Jack Jansen <[EMAIL PROTECTED]> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - ---------------------------------------------------------------------- >Comment By: Bob Ippolito (etrepum) Date: 2006-07-15 13:10 Message: Logged In: YES user_id=139309 IDE is deprecated in favor of IDLE. ---------------------------------------------------------------------- Comment By: Just van Rossum (jvr) Date: 2002-07-24 14:22 Message: Logged In: YES user_id=92689 I just looked at Idle's OutputWindow.py, and that doesn't do any buffering at all. So I wonder whether we should do that, too. Or maybe autoflush if the buffer is longer than X bytes. ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2002-07-10 16:26 Message: Logged In: YES user_id=45365 Just, I'm assigning this to you (should have done so weeks ago:-). It might be worthwhile to check out whether Idle has a workaround for this. Maybe something like doing a sys.stdout.flush() at a strategic point in the event loop is a solution (if it isn't too expensive), and otherwise at least such a flush when IDE goes idle (no pun intended). And if it's too difficult just mark it "won't fix":-) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=573174&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com