[issue8198] Importing pydoc and overwriting sys.stdout, causes one char to be sent to the console when calling help()

2010-03-21 Thread François Granade
New submission from François Granade franc...@granade.com: When the pydoc module is imported, and the sys.stdout is overwriten, a end-of-line is sent to the console (on sdtout) when the help() function is sent. to reproduce (this is on Python 2.5 but the same happens on Pythjon 3.1): bash-3.2

[issue1700304] pydoc.help samples sys.stdout and sys.stdin at import time

2010-03-21 Thread François Granade
François Granade franc...@granade.com added the comment: issue8198 is related. Re. 1700304, it's easy to work around by writing from pydoc import help import sys help.output = sys.stdout help.input = sys.stdin -- nosy: +farialima ___ Python tracker

[issue5898] Hang in Popen.wait() when another process has been created

2009-05-01 Thread François Granade
New submission from François Granade franc...@granade.com: If I remove the proc2.stdin.close() in the script below, the proc1.wait() will hang. Tested on MacOS, Linux, CygWin on 2.5.2 and 2.6. Is it a bug ? from subprocess import Popen, PIPE proc1 = Popen('cat -', shell=True, stdin=PIPE, stdout

[issue5898] Hang in Popen.wait() when another process has been created

2009-05-01 Thread François Granade
François Granade franc...@granade.com added the comment: Note that I use this wait(), otherwise, on CygWin, proc1 does not properly dies, and leaves opened (undeletable - that's windows !) files around -- ___ Python tracker rep...@bugs.python.org

[issue3002] shutil.copyfile blocks indefinitely on named pipes

2009-02-12 Thread François Granade
François Granade franc...@granade.com added the comment: Note that the 'cp' user command in Linux blocks also. Although this is *very* painful, you could argue that since the OS commands do the same thing, it shouldn't be fixed. -- nosy: +farialima