By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,345 Members | 1,746 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,345 IT Pros & Developers. It's quick & easy.

In both IDLE and command line, the print statement is not working. What do I need to

P: 2
This is a Python question...
In both IDLE and Command line, print is not working. Can someone give me a clue?
Jan 28 '11 #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 621
As a programming language, Python does not have a method to print to the printer in part because that is handled by the OS that you are running. You could use Python to program an interface to send something to the printer daemon for the OS that you are using, but there is nothing built in. Aside from the above, there is little else that can be deduced from "print is not working". If you include the OS that you are on, the version of Python that you are using, the complete error message, and some code, more helpful comments would probably be posted. Please be advised that there are no psychics here.
Jan 29 '11 #2

Expert Mod 2.5K+
P: 2,851
Is it possible that sys.stdout has been reassigned? You might try sys.stdout = sys.__stdout__.
Jan 29 '11 #3

Post your reply

Sign in to post your reply or Sign up for a free account.