homepage

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.

classification
Title: pydoc fails on package in ZIP archive
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: christopherdunn
Priority: normal Keywords:

Created on 2006年06月15日 21:50 by christopherdunn, last changed 2022年04月11日 14:56 by admin. This issue is now closed.

Messages (1)
msg28806 - (view) Author: Christopher Dunn (christopherdunn) Date: 2006年06月15日 21:50
I have Foo/__init__.py and Foo/bar.py in a ZIP archive,
test.zip, which is in the PYTHONPATH. 
pydoc works on Foo.bar, but fails on package Foo.
% pydoc Foo
Traceback (most recent call last):
 File "~/bin/pydoc", line 5, in ?
 pydoc.cli()
 File "../python-2.4/lib/python2.4/pydoc.py", line
2228, in cli
 help.help(arg)
 File "../python-2.4/lib/python2.4/pydoc.py", line
1682, in help
 elif request: doc(request, 'Help on %s:')
 File "../python-2.4/lib/python2.4/pydoc.py", line
1468, in doc
 pager(title % desc + '\n\n' + text.document(object,
name))
 File "../python-2.4/lib/python2.4/pydoc.py", line
296, in document
 if inspect.ismodule(object): return
self.docmodule(*args)
 File "../python-2.4/lib/python2.4/pydoc.py", line
1053, in docmodule
 for file in os.listdir(object.__path__[0]):
OSError: [Errno 20] Not a directory: 'test.zip/Foo'
History
Date User Action Args
2022年04月11日 14:56:18adminsetgithub: 43510
2006年06月15日 21:50:03christopherdunncreate

AltStyle によって変換されたページ (->オリジナル) /