This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author BreamoreBoy
Recipients BreamoreBoy, Jessica.McKellar, docs@python, elias, jesstess, terry.reedy
Date 2014-06-03.15:00:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401807605.55.0.168005345906.issue19980@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-06-03 15:00:05BreamoreBoysetrecipients: + BreamoreBoy, terry.reedy, jesstess, docs@python, elias, Jessica.McKellar
2014-06-03 15:00:05BreamoreBoysetmessageid: <1401807605.55.0.168005345906.issue19980@psf.upfronthosting.co.za>
2014-06-03 15:00:05BreamoreBoylinkissue19980 messages
2014-06-03 15:00:05BreamoreBoycreate