calling functions across threads
Fernando Perez
fperez528 at yahoo.com
Wed Dec 29 14:10:41 EST 2004
More information about the Python-list mailing list
Wed Dec 29 14:10:41 EST 2004
- Previous message (by thread): calling functions across threads
- Next message (by thread): calling functions across threads
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Steven Bethard wrote: > I get the correct output, but if you run this yourself, you'll see that > the numbers 1 through 10 aren't printed in sync with the writes (i.e. > every half second); they're all printed at the end. Could someone > explain to me why this happens, and how (if possible) I can get the > numbers printed in sync with the appends to the list? This is just a shot in the dark, as I'm quite ignorant of threading details. But what happens if you try adding a sys.stdout.flush() call after the print statement in your custom update() method? It may just be a flushing problem what makes the output appear out of sync... Cheers, f
- Previous message (by thread): calling functions across threads
- Next message (by thread): calling functions across threads
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list