Kodi Arfer
Kodi Arfer
Perplexing. It looks like Python wants to try to reparse the source file (as Python) even though all the docstrings it wants should already exist at runtime. I'm not sure...
It seems to occur whenever a Hy source file contains a `defclass` with no docstring.
There it is: > If there is no docstring, pydoc [`pydoc.help` being called by `help`] tries to obtain a description from the block of comment lines just above the definition...
> I think it would not be too difficult to write a regex to extract comments I'm not so sure. Hy's syntax is Turing-undecidable (because of reader macros); it has...
I think calling `hy_compile` or `read_many` is too much, because it would mean that `help` can execute arbitrary code, which is a big change from the situation in plain Python....
> doesn't calling help on an object mean the object has already been through the reader once, since it's in the namespace? Sure, but one of the things about arbitrary...
I also have another PR you might like better, which patches `pydoc.getdoc` rather than anything in `inspect`. To be uploaded shortly.
When making further changes to this PR, please add commits (or force-push) rather than closing it and making a new one.
The test is a bit wonky. Giving the `default` argument to `getattr` means that you're accepting either of `sys.ps1` or `sys.flags.interactive`. Shouldn't you be more specific as to which you...
That's an impressive table you've compiled, but your test only checks `hy -i`, so that's what the assertion should be written for.