python-cx_Oracle icon indicating copy to clipboard operation
python-cx_Oracle copied to clipboard

docstrings in cx_Oracle

Open xeviterr opened this issue 8 years ago • 5 comments

I'm only have a question/suggestion.

Why the docstrings are not included in the cx_Oracle module, or I can't find them?

When I'm connecting oracle from ipython console using cx_Oracle, I'm not able to get the docstring of any object. For example when I'm using a Cursor object.

In [21]: cxOra.execute?
Docstring: <no docstring>
Type:      builtin_function_or_method

I always have to read the documentation, is not a very big problem but it will be wonderful if someday I can see the documentation on command line, or at least the function signature.

Thanks!

xeviterr avatar Apr 28 '18 07:04 xeviterr

Thanks for the suggestion. I'll figure out how to ensure that the documentation is not duplicated in the C code and Sphinx and then see how much effort is involved to migrate.

anthony-tuininga avatar Apr 30 '18 20:04 anthony-tuininga

Would that also help for intellisense / autocompletion in VSCode / PyCharm?

quenck avatar Mar 06 '19 15:03 quenck

Coming here for the same issue. No type hinting available on cx_Oracle in Visual Studio Code.

troyswanson avatar May 17 '22 02:05 troyswanson

Fixed in next version - due out soon.

cjbj avatar May 17 '22 02:05 cjbj

The new version is out, see the release announcement. It has good intellisense (but we can see room for improvement).

cjbj avatar Jun 03 '22 02:06 cjbj