Message319659
Apologies for not being clear.
So I wrote:
In IPython (or Jupyter), `inspect.getsource` is able to retrieve the source code for functions but not classes.
By this I mean:
import inspect
class X:
pass
inspect.getsource(X)
Note that:
- it won't work in the vanilla python interpreter,
- it does work for functions in Jupyter/IPython currently,
- it works for classes (and functions) in modules.
What I would like is to have it work for classes in Jupyter/IPython.
By the way: Would a PR be more convenient than a patch? |
|
Date |
User |
Action |
Args |
2018-06-15 19:46:16 | t-vi | set | recipients:
+ t-vi, Ivan.Pozdeev |
2018-06-15 19:46:16 | t-vi | set | messageid: <1529091976.6.0.56676864532.issue33826@psf.upfronthosting.co.za> |
2018-06-15 19:46:16 | t-vi | link | issue33826 messages |
2018-06-15 19:46:16 | t-vi | create | |
|