First time here? Check out the FAQ!
0

WingIDE: Python shell will only print one item

All of sudden, the Python shell will only print one item. I am trying to use the print method to debug my code, and I have tried simply writing print("A", "B") in a main method and only"A" will be printed whilst it says "Executing command. Please wait for result"

I was able to print multiple items from my code earlier, and now I cannot, for no particular reason as I have not changed any of the WingIDE settings nor have I done anything foolish with my code. I have tried updating to the latest version which did not change anything.

My question is I suppose, is there anything that causes WingIDE to stop printing more than one item? This is so frustrating as it just happened out of nowhere.

Richard Han's avatar
1
Richard Han
asked 2017-06-05 00:53:00 -0500
Wingware Support's avatar
4k
Wingware Support
updated 2019-03-13 10:15:51 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

My best guess is that print has somehow been replaced with something else (I think only possible in Python 3) or if you're not literally saying "B" but something else then it may be running off int __repr__ or __str__ methods that fail to exit.  It could also be something going wrong with our I/O processing code, but I can't really see how it would do what you describe.  Does restarting the Python Shell from its Options menu clear it so it works right if you type print("A", "B") first thing after restarting it?  If not, check whether you have PYTHONSTART defined in the environment, which could be altering something.  If reproducible please let us know version of Wing, dist and version of Python, and OS version.

Wingware Support's avatar
4k
Wingware Support
answered 2017-06-05 08:49:00 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer