Python Forum
redirect STDIO in the Python code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
redirect STDIO in the Python code
#4
Why not just replacing sys.stdout and sys.stderr by custom file objects that send the data to the other forms of output?

For example the IDLE IDE interposes in front of these streams to send the output to a tkinter text window instead of the standard files.
Reply


Messages In This Thread
redirect STDIO in the Python code - by Skaperen - Jun-23-2023, 01:32 AM
RE: redirect STDIO in the Python code - by Skaperen - Jun-27-2023, 11:12 PM
RE: redirect STDIO in the Python code - by Gribouillis - Jun-28-2023, 04:56 AM
RE: redirect STDIO in the Python code - by Skaperen - Jul-01-2023, 12:48 AM
RE: redirect STDIO in the Python code - by Skaperen - Jul-05-2023, 12:23 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  stderr redirect to file fmr300 2 3,729 Apr-03-2021, 01:31 AM
Last Post: fmr300
  Cannot redirect print to a file tester_V 3 2,587 Sep-11-2020, 12:21 AM
Last Post: tester_V
  redirect url_for passing arguments with the url Leon79 1 1,712 Jul-09-2020, 05:20 PM
Last Post: Leon79
  Redirect to __stdout__ fails in IDLE shell Pavel_47 1 2,014 Apr-13-2020, 05:13 PM
Last Post: deanhystad
  Redirect to file vndywarhol 1 2,357 Aug-23-2018, 11:01 AM
Last Post: DeaD_EyE
  Python redirect users to another url after form post blsturgeon 5 19,166 Jun-28-2018, 11:53 PM
Last Post: gontajones
  Script for media content and redirect in to a file puneet102 0 2,400 May-22-2018, 12:06 PM
Last Post: puneet102

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020