[issue31804] multiprocessing calls flush on sys.stdout at exit even if it is None (pythonw)

2017-10-17 Thread Pox TheGreat
New submission from Pox TheGreat <poxthegr...@gmail.com>: If you start Python by pythonw then sys.stdout and sys.stderr are set to None. If you also use multiprocessing then when the child process finishes BaseProcess._bootstrap calls sys.stdout.flush() and sys.stderr.flush() f

[issue31804] multiprocessing calls flush on sys.stdout at exit even if it is None (pythonw)

2018-01-10 Thread Pox TheGreat
Pox TheGreat <poxthegr...@gmail.com> added the comment: Retested it with a freshly installed 3.6.4 version. Used the following code to test: import sys import multiprocessing def foo(): return 'bar' if __name__ == '__main__': proc = multiprocessing.Process(targ

[issue31804] multiprocessing calls flush on sys.stdout at exit even if it is None (pythonw)

2018-01-09 Thread Pox TheGreat
Pox TheGreat <poxthegr...@gmail.com> added the comment: Unfortunately this is NOT a duplicate of https://bugs.python.org/issue28326. That issue is about a closed output stream. In that case sys.stdout and sys.stderr are file like objects which have been closed. This issue is about sys.

[issue31804] multiprocessing calls flush on sys.stdout at exit even if it is None (pythonw)

2018-01-12 Thread Pox TheGreat
Pox TheGreat <poxthegr...@gmail.com> added the comment: I have already uploaded a patch file but it is not in the required format. Also I realize that most of the confusion was because I forgot to provide the OS version. Perhaps it would be good to have a separate field for th

[issue39602] importlib: lazy loading can result in reimporting a submodule

2020-02-10 Thread Pox TheGreat
New submission from Pox TheGreat : Using the LazyLoader class one can modify the sys.meta_path finders so that every import mechanism becomes lazy. This method has been used in Mercurial and by Facebook. My problem is that if I have a package (pa) which imports a submodule