Mark Lawrence added the comment:

Please find attached a first pass at a patch file.  Help('') produces help for 
the str class as discussed.  I found the difference between help('help') and 
help() very confusing.  The former produced the help output but left you at the 
interactive prompt, the latter took you to the help utility.  Both now take you 
to the help utility.  I've changed the test file but two test fail, here's the 
output from one as they're virtually identical.

FAIL: test_input_strip (test.test_pydoc.PydocDocTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\cpython\lib\test\test_pydoc.py", line 429, in test_input_strip
    self.assertEqual(expected, result)
AssertionError: 'No P[49 chars]e\'.\nUse help("help") or just help() to get 
t[66 chars]ass.' != 'No P[49 chars]e\'.\r\nUse help("help") or just help() to 
get[70 chars]ass.'
- No Python documentation found for 'test.i_am_not_here'.
+ No Python documentation found for 'test.i_am_not_here'.
?                                                        +
- Use help("help") or just help() to get the interactive help utility.
+ Use help("help") or just help() to get the interactive help utility.
?                                                                     +
  Use help(str) for help on the str class.

I can't see where the difference between the .\nUse and .\r\nUse is coming from 
so thought fresh eyes would do the job.

----------
Added file: http://bugs.python.org/file35472/issue19980.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19980>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to