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
#7
my big concern is that sys.stderr and/or sys.stdout, either a reference or (parts of) the object itself, could be cached by whatever code that accesses sys.stderr and/or sys.stdout has cached. as such, i would rather not try to update sys.stderr and/or sys.stdout in any way, and, instead, update the system reference (file descriptor in POSIX), instead.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
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 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,728 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,164 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