libdynd / dynd-python

Python exposure of dynd
http://libdynd.org
Other
119 stars 23 forks source link

Callable docstrings #739

Open mrocklin opened 8 years ago

mrocklin commented 8 years ago

It appears that all callables have the callable docstring:

In [13]: nd.take?
Type:           callable
String form:    <dynd.nd.callable.callable object at 0x7fead0153870>
File:           ~/Software/anaconda/lib/python3.5/site-packages/dynd/nd/callable.so
Docstring:     
nd.callable(func, proto)

This holds a dynd nd.callable object, which represents a single typed
function. The particular abstraction this represents is still being
sorted out.
insertinterestingnamehere commented 7 years ago

Yep. This is a current outstanding issue that we've discussed before. Thanks for bringing it up though. Really this stems from the fact that our callable C++ objects need to have somewhere to put metadata like names and docstrings. Once that's resolved, we can expose it to Python as well.