Issue2494

classification
Title: Support for pydoc_data
Type: Severity: normal
Components: Versions: Jython 2.7
Milestone:
process
Status: pending Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: jeff.allen, jenselme
Priority: normal Keywords:

Created on 2016-04-18.15:36:22 by jenselme, last changed 2018-03-13.21:29:42 by jeff.allen.

Messages
msg10837 (view) Author: Julien Enselme (jenselme) Date: 2016-04-18.15:36:21
Hi,

I am a member of the NbPython team (http://nbpython.org/). We develop the python plugin for Netbeans IDE and bundle Jython in our plugin.

While working on completion with the Jedi library (https://jedi.readthedocs.org), I noticed that pydoc_data is not available in Jython. pydoc_data is a module from the standard library of python.

What I did:

```
import pydoc_data
```

What I get:

```
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pydoc_data
```

Expected result: the module is correctly imported without errors.

See https://hg.python.org/cpython/file/2.7/Lib/pydoc_data for the code in cpython.
msg11792 (view) Author: Jeff Allen (jeff.allen) Date: 2018-03-13.21:29:42
Background (because I didn't know): pydoc_data contains a generated package defining non-docstring help strings that enables this:

>>> help("if")
The ``if`` statement
********************

The ``if`` statement is used for conditional execution:

   if_stmt ::= "if" expression ":" suite
...

This works for me in 2.7.2a1+, no doubt as a side effect of updating lib-python. Propose to close. (Can't really claim "fixed".)
History
Date User Action Args
2018-03-13 21:29:42jeff.allensetpriority: normal
status: open -> pending
resolution: works for me
messages: + msg11792
nosy: + jeff.allen
2016-04-18 15:36:22jenselmecreate