[Python-bugs-list] [ python-Bugs-586931 ] pydoc -w fails with path specified

noreply@sourceforge.net noreply@sourceforge.net
Fri, 26 Jul 2002 03:31:12 -0700


Bugs item #586931, was opened at 2002-07-26 10:31
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=586931&group_id=5470

Category: Documentation
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Matthias Klose (doko)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: pydoc -w fails with path specified

Initial Comment:
[from http://bugs.debian.org/143462]

If I specify a path (ie, ./dictclient.py) and use -w, it will 
fail.  If -w
is not used, or a module (ie, dictclient) is specified, it 
will work. 
Example:

$ pydoc2.2 -w ./dictclient.py
Traceback (most recent call last):
  File "/usr/bin/pydoc2.2", line 4, in ?
    pydoc.cli()
  File "/usr/lib/python2.2/pydoc.py", line 2074, in cli
    writedoc(arg)
  File "/usr/lib/python2.2/pydoc.py", line 1345, in writedoc
    object = locate(key, forceload)
  File "/usr/lib/python2.2/pydoc.py", line 1297, in locate
    parts = split(path, '.')
  File "/usr/lib/python2.2/string.py", line 117, in split
    return s.split(sep, maxsplit)
AttributeError: 'module' object has no attribute 'split'


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

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