Python output looks very inconsistent.

Gabe Appleton's Avatar

Gabe Appleton

21 Nov, 2015 04:09 AM

Running into a problem on Python 2.6 and Python 2.7.

On my personal system running 2.7, and on your system running Python 3+, and on Linux with any Python, prints are coming in chronological order.

On your system running 2.6/2.7, it is printing one thread's worth, then another, then another.

So whereas on my system it would look like:

[1] 444 [2] 445 [1] 446

On your's it would appear:

[2] 445 [1] 444 [1] 446

Can you help me find out why that would be? It used to be that this behavior was consistent across systems.

  1. 1 Posted by Gabe Appleton on 21 Nov, 2015 07:12 AM

    Gabe Appleton's Avatar

    I've now noticed this happening on all of your Python implementations.

    This does not happen when I run the same code in identical circumstance on my machines. Any idea what could be the cause? It makes debugging very difficult.

  2. Support Staff 2 Posted by Feodor Fitsner on 21 Nov, 2015 03:40 PM

    Feodor Fitsner's Avatar

    Is it a public project? What is its project/build URL?

    - Feodor

  3. 3 Posted by gabe appleton on 21 Nov, 2015 06:53 PM

    gabe appleton's Avatar

    This is in

    I could make a shorter sample to work with though. This seems to have been
    happening since day one on this project.

  4. Support Staff 4 Posted by Feodor Fitsner on 22 Nov, 2015 02:04 AM

    Feodor Fitsner's Avatar

    Have you tried redirecting the output to a file and see what you get there?

    - Feodor

  5. 5 Posted by gabe appleton on 23 Nov, 2015 05:35 AM

    gabe appleton's Avatar

    Redirecting to a file does not change this. I've also noticed that it
    is now only printing one thread, both from a file, and not. This is
    not the case on any other system I try it on, Window or Linux based.

  6. Support Staff 6 Posted by Feodor Fitsner on 23 Nov, 2015 05:55 PM

    Feodor Fitsner's Avatar

    Have you tried running it while in RDP: ?

  7. 7 Posted by gabe appleton on 23 Nov, 2015 09:16 PM

    gabe appleton's Avatar

    For now I'm doing a workaround by having it redirect to a file in
    python itself. I'll try the RDP stuff later tonight.

  8. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:02 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac