Jul-01-2023, 12:48 AM
(Jun-28-2023, 04:56 AM)Gribouillis Wrote: Why not just replacingsys.stdout
andsys.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.
when any Python library forks a new process, does it make whatever is in sys.stdout, which may be using some other fd, such as fd 6, instead of fd 1, become fd 1, so that the new process gets it as fd 1 and likewise sys.stderr becomes fd 2?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.