[issue12674] pydoc str.split does not find the method

2011-08-01 Thread thp

New submission from thp t...@thpinfo.com:

If I want to get help on a method on a built-in class (e.g. list or str) I can 
use the help function in the interactive shell:

 help(str.split)
 help(list.append)

However, when I try to do the same with the command-line utility pydoc it 
does not work:

$ pydoc str.split

What does work with the pydoc command is that I use the following command and 
then search for the function in the resulting output:

$ pydoc str # after that, manually search for split

I've created a patch against Python 2.6's pydoc.py that tries to iteratively 
look up methods in builtins. This keeps the previous behavior as-is, but will 
give positive results in the cases listed above.

--
components: Library (Lib)
files: pydoc_builtin-classmethods.patch
keywords: patch
messages: 141494
nosy: thp
priority: normal
severity: normal
status: open
title: pydoc str.split does not find the method
versions: Python 2.7
Added file: http://bugs.python.org/file22817/pydoc_builtin-classmethods.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12674
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4361] Docstring for Lib/string.py is outdated

2008-11-20 Thread thp

New submission from thp [EMAIL PROTECTED]:

The docstring in Lib/string.py in the source of Python 3.0rc2 is
wrong. It currently says lowercase, uppercase and letters where it
should say ascii_lowercase, ascii_uppercase and ascii_letters.

--
assignee: georg.brandl
components: Documentation
files: Lib_string_py-docstring.patch
keywords: patch
messages: 76097
nosy: georg.brandl, thp
severity: normal
status: open
title: Docstring for Lib/string.py is outdated
versions: Python 3.0
Added file: http://bugs.python.org/file12069/Lib_string_py-docstring.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com