[Python-bugs-list] [ python-Bugs-686380 ] errors trying to get help on os attributes

SourceForge.net noreply@sourceforge.net
Thu, 13 Feb 2003 21:11:11 -0800


Bugs item #686380, was opened at 2003-02-13 23:11
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=686380&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Skip Montanaro (montanaro)
Assigned to: Nobody/Anonymous (nobody)
Summary: errors trying to get help on os attributes

Initial Comment:
I noticed some very weird behavior w/ 2.3 when asking for
help about some data attributes in the os module.  Consider:

% python
Python 2.3a1 (#13, Feb  4 2003, 09:26:29) 
[GCC 3.1 20020420 (prerelease)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> help(os.sep)
no Python documentation found for '/'

>>> help(os.extsep)
problem in  - ValueError: Empty module name

>>> help(os.pathsep)
no Python documentation found for ':'

>>> help(os.curdir)
problem in  - ValueError: Empty module name

Now the same feat of prestidigation using 2.2.2 (on Mac OSX):

% python2.2 
Python 2.2.2 (#7, Oct 14 2002, 18:07:17) 
[GCC 3.1 20020420 (prerelease)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> help(os.sep)
no Python documentation found for '/'

>>> help(os.extsep)
problem in  - ValueError: Empty module name

>>> help(os.pathsep)
no Python documentation found for ':'

>>> help(os.curdir)
problem in  - ValueError: Empty module name

Finally, the same example using 2.2.2 under Mandrake Linux:

% python
Python 2.2.2 (#1, Nov  8 2002, 08:50:21) 
[GCC 2.96 20000731 (Mandrake Linux 8.1 2.96-0.62mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> help(os.sep)
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
>>> help(os.extsep)
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
>>> help(os.pathsep)
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.
>>> help(os.curdir)
str(object) -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

Now, I can understand that maybe I've hosed my CVS tree,
which would affect the 2.3 build, but the 2.2.2 build on both
Mac OS X and Mandrake Linux is I believe straight from the
source with no CVS monkey business.

Can anyone else reproduce this?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=686380&group_id=5470