On Sat, Jun 19, 2021 at 11:36 PM Terry Reedy <tjre...@udel.edu> wrote:

> On 6/19/2021 5:36 PM, André Roberge wrote:
>
> >  >>> from friendly.idle import *
>
> I hope you document the alternative for anyone wanting to isolate f.i
> functions: `import friendly.idle as fi` or
> `from friendly import idle as fi`.
>
> Documenting this is on my list of things to do.
I already have had similar feedback from another instructor who uses it
with the Jupyter module.

The reason I usually write "import *" is that I view the functions
why(), what(), where(), etc., like they are additional builtins available
in an interactive session. (They are not added to the builtins module.)



> In any case, fi executes in the user process.  Do you use the rpc
> connection to query linecache in the IDLE process?
>

Yes, I do.

>
>
> On the issue, I suggested de-serializing the original rather than
> recompiling.
>

It would make sense, if I knew how to access the information
using rpc. For SyntaxErrors and subclasses, all I need for the
analysis are the Exception argument (message, offset, lineno, etc.)
and the entire offending code.


André
_______________________________________________
IDLE-dev mailing list
IDLE-dev@python.org
https://mail.python.org/mailman/listinfo/idle-dev

Reply via email to