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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pierre Morel
    New Member
    • Jan 2011
    • 2

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

    This is a Python question...
    In both IDLE and Command line, print is not working. Can someone give me a clue?
  • dwblas
    Recognized Expert Contributor
    • May 2008
    • 626

    #2
    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.

    Comment

    • bvdet
      Recognized Expert Specialist
      • Oct 2006
      • 2851

      #3
      Is it possible that sys.stdout has been reassigned? You might try sys.stdout = sys.__stdout__.

      Comment

      Working...