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

2010-03-31 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: Nice buglet, please take a look at Lib/pydoc.py to follow :) As you point out, this is issue 1700304. 'plainpager', which outputs the help in these cases, uses 'sys.stdout.write(plain(text))', but Helper.help has a

[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):